@@ -11431,9 +11431,7 @@ fn parse_bang_not() {
11431
11431
for & sql in & sql_statements {
11432
11432
assert_eq ! (
11433
11433
dialects. parse_sql_statements( sql) . unwrap_err( ) ,
11434
- ParserError :: ParserError (
11435
- "current dialect support bang not operator, but with wrong syntax" . to_string( )
11436
- )
11434
+ ParserError :: ParserError ( "No infix parser for token ExclamationMark" . to_string( ) )
11437
11435
) ;
11438
11436
}
11439
11437
@@ -11487,7 +11485,7 @@ fn parse_factorial_operator() {
11487
11485
11488
11486
// Due to the exclamation mark, which is both part of the `bang not` operator
11489
11487
// and the `factorial` operator, additional filtering not supports
11490
- // `bang not` operator is required here.
11488
+ // `bang not` operator is required here.
11491
11489
let dialects =
11492
11490
all_dialects_where ( |d| !d. supports_factorial_operator ( ) && !d. supports_bang_not_operator ( ) ) ;
11493
11491
@@ -11500,16 +11498,14 @@ fn parse_factorial_operator() {
11500
11498
11501
11499
// Due to the exclamation mark, which is both part of the `bang not` operator
11502
11500
// and the `factorial` operator, additional filtering supports
11503
- // `bang not` operator is required here.
11501
+ // `bang not` operator is required here.
11504
11502
let dialects =
11505
11503
all_dialects_where ( |d| !d. supports_factorial_operator ( ) && d. supports_bang_not_operator ( ) ) ;
11506
11504
11507
11505
for & sql in & sql_statements {
11508
11506
assert_eq ! (
11509
11507
dialects. parse_sql_statements( sql) . unwrap_err( ) ,
11510
- ParserError :: ParserError (
11511
- "current dialect support bang not operator, but with wrong syntax" . to_string( )
11512
- )
11508
+ ParserError :: ParserError ( "No infix parser for token ExclamationMark" . to_string( ) )
11513
11509
) ;
11514
11510
}
11515
11511
}
0 commit comments