Skip to content

Commit

Permalink
expression: the quote func for null arg should map to "NULL" string (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoxingliang authored and SunRunAway committed Nov 22, 2019
1 parent fe2f252 commit 419d3da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expression/builtin_string.go
Original file line number Diff line number Diff line change
Expand Up @@ -2668,7 +2668,7 @@ func (b *builtinQuoteSig) evalString(row chunk.Row) (string, bool, error) {
if err != nil {
return "", true, err
} else if isNull {
// If the argument is NULL, the return value is the word NULL without enclosing single quotation marks.
// If the argument is NULL, the return value is the word "NULL" without enclosing single quotation marks. see ref.
return "NULL", false, err
}

Expand Down

0 comments on commit 419d3da

Please sign in to comment.