HashCode implements the Expression interface.
()
| 250 | |
| 251 | // HashCode implements the Expression interface. |
| 252 | func (s *ScalarSubQueryExpr) HashCode() []byte { |
| 253 | if len(s.hashcode) != 0 { |
| 254 | return s.hashcode |
| 255 | } |
| 256 | s.hashcode = make([]byte, 0, 9) |
| 257 | s.hashcode = append(s.hashcode, expression.ScalarSubQFlag) |
| 258 | s.hashcode = codec.EncodeInt(s.hashcode, s.scalarSubqueryColID) |
| 259 | return s.hashcode |
| 260 | } |
| 261 | |
| 262 | // CanonicalHashCode implements the Expression interface. |
| 263 | func (s *ScalarSubQueryExpr) CanonicalHashCode() []byte { |
no test coverage detected