mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-09-01 03:37:21 +00:00
feat: Support MySQL's DIV
operator (#876)
* feat: MySQL's DIV operator * fix: do not use `_` prefix for used variable --------- Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
This commit is contained in:
parent
feaa13c9a9
commit
097e7ad56e
5 changed files with 38 additions and 1 deletions
|
@ -1407,3 +1407,8 @@ fn parse_string_introducers() {
|
|||
mysql().one_statement_parses_to("SELECT _utf8mb4'abc'", "SELECT _utf8mb4 'abc'");
|
||||
mysql().verified_stmt("SELECT _binary 'abc', _utf8mb4 'abc'");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_div_infix() {
|
||||
mysql().verified_stmt(r#"SELECT 5 DIV 2"#);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue