1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

revert second lookahead in the lexer

it's not enough to look for NOT NULL IS, this also fails queries like
SELECT NOT NULL <=> NULL;
and adds no value anymore, as the grammar now requires parentheses
This commit is contained in:
Sergei Golubchik
2016-06-29 18:55:14 +02:00
parent 80de816df0
commit 8f9530a9ab
13 changed files with 19 additions and 97 deletions

View File

@ -320,7 +320,7 @@ id select_type table type possible_keys key key_len ref rows filtered Extra
Warnings:
Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where (not((`test`.`t1`.`a` + 0)))
select not 1, not null, not not null, 1 is not null;
not 1 NULL not not null 1 is not null
not 1 not null not not null 1 is not null
0 NULL NULL 1
drop table t1;
#