Skip to content

Commit 0534270

Browse files
committed
fix parse_not_precedence relying on all dialects having boolean literals
1 parent ee95c42 commit 0534270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/sqlparser_common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,7 @@ fn parse_is_not_distinct_from() {
14991499
#[test]
15001500
fn parse_not_precedence() {
15011501
// NOT has higher precedence than OR/AND, so the following must parse as (NOT true) OR true
1502-
let sql = "NOT true OR true";
1502+
let sql = "NOT 1 OR 1";
15031503
assert_matches!(
15041504
verified_expr(sql),
15051505
Expr::BinaryOp {

0 commit comments

Comments
 (0)