Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expression: the quote function should treat null expr as NULL literal string instead of NULL (#11592) #13681

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
expression: the quote func for null arg should map to "NULL" string (#…
  • Loading branch information
gaoxingliang authored and SunRunAway committed Nov 22, 2019
commit 419d3da66118620ed417887318ffa74cfbb749ad
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