mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-04-28 07:59:39 -05:00
grammar: Fix parsing of complex expression
This fixes parsing of expressions of the form '(x) AND/OR y' and similar types. It also fixes expression of the '(x)' type and of the '(x op y AND z op w)' type. See issue #1454.
This commit is contained in:
@@ -431,7 +431,8 @@ functionname
|
||||
|
||||
expr
|
||||
:
|
||||
( LPAREN subexpr (COMMA subexpr)+ RPAREN binaryoperator LPAREN subexpr (COMMA subexpr)+ RPAREN )
|
||||
( LPAREN expr RPAREN ((AND | OR) expr)* )
|
||||
| ( LPAREN subexpr (COMMA subexpr)+ RPAREN binaryoperator LPAREN subexpr (COMMA subexpr)+ RPAREN )
|
||||
| ( subexpr ((binaryoperator | AND | OR) subexpr )* )
|
||||
;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user