You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where condition with negative numbers cause "Unexpected 'MATH'" error. To reproduce change 1 to -1 in your example page: select * from test where a = -1 and foo = "bar"
There is a logical or regex problem in your Lexer:
MATH = ['+', '-', '||', '&&'];
and
NUMBER = /^[0-9]+(.[0-9]+)?/;
I was trying to add sign to your number regex but it did not help: NUMBER = /^[-+]?[0-9]+(.[0-9]+)?/;
Can you fix the problem as it make component much less useful?
Thanks,
Dmitry
The text was updated successfully, but these errors were encountered:
Where condition with negative numbers cause "Unexpected 'MATH'" error. To reproduce change 1 to -1 in your example page: select * from test where a = -1 and foo = "bar"
There is a logical or regex problem in your Lexer:
MATH = ['+', '-', '||', '&&'];
and
NUMBER = /^[0-9]+(.[0-9]+)?/;
I was trying to add sign to your number regex but it did not help: NUMBER = /^[-+]?[0-9]+(.[0-9]+)?/;
Can you fix the problem as it make component much less useful?
Thanks,
Dmitry
The text was updated successfully, but these errors were encountered: