mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-16 04:54:59 +00:00
Correct order of arguments in LIMIT x,y
, restrict to MySql and generic dialects (#642)
* 613 Fixing MySQL LIMIT syntax * 613 Reducing logic to real case scenario * 613 Adding syntax to generic dialect
This commit is contained in:
parent
fb5a9747ae
commit
3beecc0a7a
3 changed files with 25 additions and 16 deletions
|
@ -1593,14 +1593,6 @@ fn parse_limit_accepts_all() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_limit_my_sql_syntax() {
|
||||
one_statement_parses_to(
|
||||
"SELECT id, fname, lname FROM customer LIMIT 5, 10",
|
||||
"SELECT id, fname, lname FROM customer LIMIT 5 OFFSET 10",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_cast() {
|
||||
let sql = "SELECT CAST(id AS BIGINT) FROM customer";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue