Skip to content

Commit

Permalink
feat: support IS UNKNOWN as synonym to IS NULL (#15673)
Browse files Browse the repository at this point in the history
  • Loading branch information
systay authored Apr 8, 2024
1 parent e118bbc commit ab6a5b4
Show file tree
Hide file tree
Showing 8 changed files with 7,799 additions and 7,809 deletions.
1 change: 1 addition & 0 deletions go/vt/sqlparser/keywords.go
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,7 @@ var keywords = []keyword{
{"unicode", UNICODE},
{"union", UNION},
{"unique", UNIQUE},
{"unknown", UNKNOWN},
{"unlock", UNLOCK},
{"unsigned", UNSIGNED},
{"unthrottle", UNTHROTTLE},
Expand Down
3 changes: 3 additions & 0 deletions go/vt/sqlparser/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3790,6 +3790,9 @@ var (
}, {
input: `kill 18446744073709551615`,
output: `kill connection 18446744073709551615`,
}, {
input: `select * from tbl where foo is unknown or bar is not unknown`,
output: `select * from tbl where foo is null or bar is not null`,
}}
)

Expand Down
Loading

0 comments on commit ab6a5b4

Please sign in to comment.