Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
Signed-off-by: AilinKid <314806019@qq.com>
  • Loading branch information
AilinKid committed May 6, 2023
1 parent d62e8e5 commit ecae432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expression/scalar_function.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ func (sf *ScalarFunction) EvalJSON(ctx sessionctx.Context, row chunk.Row) (types

// HashCode implements Expression interface.
func (sf *ScalarFunction) HashCode(sc *stmtctx.StatementContext) []byte {
if sc.CanonicalHashCode {
if sc != nil && sc.CanonicalHashCode {
if len(sf.canonicalhashcode) > 0 {
return sf.canonicalhashcode
}
Expand Down

0 comments on commit ecae432

Please sign in to comment.