We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
parse_div_infix_propagates_parse_error()
1 parent bada516 commit 81a2c21Copy full SHA for 81a2c21
1 file changed
tests/sqlparser_mysql.rs
@@ -3627,6 +3627,15 @@ fn parse_div_infix() {
3627
mysql().verified_stmt(r#"SELECT 5 DIV 2"#);
3628
}
3629
3630
+#[test]
3631
+fn parse_div_infix_propagates_parse_error() {
3632
+ let err = mysql()
3633
+ .parse_sql_statements("SELECT 5 DIV")
3634
+ .expect_err("expected an error");
3635
+ dbg!(&err);
3636
+ assert_matches!(err, ParserError::ParserError(_));
3637
+}
3638
+
3639
#[test]
3640
fn parse_drop_temporary_table() {
3641
let sql = "DROP TEMPORARY TABLE foo";
0 commit comments