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:
AugustoFKL 2022-10-01 18:23:06 -03:00 committed by GitHub
parent fb5a9747ae
commit 3beecc0a7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 16 deletions

View file

@ -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";