diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-01-17 15:21:41 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2012-01-17 15:47:44 +0100 |
commit | b713652b33b6eb180528016f81de59451e2e51f1 (patch) | |
tree | 34bbb3040803898c6dbed3860819511a01fd8cc0 /connectivity/source/parse | |
parent | 6031d1285c510c893b77f87648e442bd12afba94 (diff) |
Also teach "foo IS [NOT] bar" to our SQL parser (when bar is not NULL)
Syntax supported by at least SQLite.
Diffstat (limited to 'connectivity/source/parse')
-rwxr-xr-x | connectivity/source/parse/sqlbison.y | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/connectivity/source/parse/sqlbison.y b/connectivity/source/parse/sqlbison.y index e32f22d0558e..d77fb1452dec 100755 --- a/connectivity/source/parse/sqlbison.y +++ b/connectivity/source/parse/sqlbison.y @@ -1282,6 +1282,12 @@ comparison: $$->append($3); $$->append($4); } + | SQL_TOKEN_IS sql_not + { + $$ = SQL_NEW_RULE; + $$->append($1); + $$->append($2); + } ; between_predicate_part_2: sql_not SQL_TOKEN_BETWEEN row_value_constructor SQL_TOKEN_AND row_value_constructor |