Ophir LOJKINE
f46f147ffa
add support for JSON_TABLE ( #1062 )
2023-12-19 15:04:09 -05:00
Thomas Kluyver
640b9394cd
Add support for generated virtual columns with expression ( #1051 )
2023-11-22 13:16:15 -05:00
Drew Thomas
3d2773a794
Support INSERT INTO ... DEFAULT VALUES ...
( #1036 )
2023-11-21 15:21:26 -05:00
Ophir LOJKINE
c905ee0cb8
Support CONVERT
expressions ( #1048 )
2023-11-20 14:55:18 -05:00
Mehmet Emin KARAKAŞ
c0c2d58910
Support global and session parts in show variables for mysql and generic dialects ( #1032 )
2023-11-20 14:47:55 -05:00
Ophir LOJKINE
953c833a4a
Support mssql json and xml extensions ( #1043 )
2023-11-18 07:03:12 -05:00
yuval-illumex
b89edaa98b
Support IGNORE|RESPECT
NULLs clause in window functions ( #998 )
...
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-10-24 09:45:59 -04:00
Mehmet Emin KARAKAŞ
86aa1b96be
Support INSERT IGNORE
in MySql
and GenericDialect
( #1004 )
...
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-10-24 05:45:25 -04:00
Ophir LOJKINE
ce62fe6d27
Support FILTER
in over clause ( #1007 )
...
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-10-23 18:06:39 -04:00
Ophir LOJKINE
c03586b727
Support mysql RLIKE
and REGEXP
binary operators ( #1017 )
2023-10-20 16:13:22 -04:00
Lukasz Stefaniak
2786c7eaf1
clickhouse: add support for LIMIT BY ( #977 )
2023-10-02 11:53:32 -04:00
Ulrich Schmidt-Goertz
6ffc3b3a52
Support DELETE with ORDER BY and LIMIT (MySQL) ( #992 )
2023-10-02 08:42:58 -04:00
chunshao.rcs
f6e4be4c15
Support mysql partition
to table selection ( #959 )
...
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-09-14 14:21:47 -04:00
artorias1024
0480ee9886
feat: Add support for parsing the syntax of MySQL UNIQUE KEY. ( #962 )
...
Co-authored-by: yukunpeng <yukunpeng@zhoupudata.com>
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-09-08 06:58:31 -04:00
Berkay Şahin
bb7b05e106
feat: Group By All ( #964 )
...
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-09-08 06:47:56 -04:00
Forbes Lindesay
25e037c50f
feat: allow multiple actions in one ALTER TABLE
statement ( #960 )
2023-09-07 16:39:47 -04:00
Andrew Lamb
14da37d182
Fix Rust 1.72 clippy lints ( #957 )
2023-08-25 12:21:31 -04:00
Marko Grujic
1ea8858575
Table time travel clause support, add visit_table_factor
to Visitor ( #951 )
2023-08-22 06:06:32 -04:00
ehoeve
9500649c35
Add support for MySQL auto_increment offset ( #950 )
2023-08-21 16:25:32 -04:00
ehoeve
83e30677b0
Add support for table-level comments ( #946 )
...
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-08-17 06:44:55 -04:00
Jeremy Maness
8bbb85356c
Fix SUBSTRING from/to argument construction for mssql ( #947 )
2023-08-17 06:17:57 -04:00
liadgiladi
eb4be98980
Support DROP TEMPORARY TABLE
, MySQL syntax ( #916 )
2023-08-07 10:54:24 -04:00
canalun
f98a2f9dca
feat: mysql no-escape mode ( #870 )
...
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-07-19 16:36:52 -04:00
Andrew Lamb
4efe55dd8a
Remove most instances of #[cfg(feature(bigdecimal))]
in tests ( #910 )
2023-07-17 14:19:51 -04:00
Berkay Şahin
ef46cd3752
Named window frames ( #881 )
...
* after over clause, named window can be parsed with window ... as after having clause
* Lint errors are fixed
* Support for multiple windows
* fix lint errors
* simplifications
* rename function
* Rewrite named window search in functional style
* Test added and some minor changes
* Minor changes on tests and namings, and semantic check is removed
---------
Co-authored-by: Mustafa Akur <mustafa.akur@synnada.ai>
Co-authored-by: Mehmet Ozan Kabak <ozankabak@gmail.com>
2023-05-18 15:00:24 -04:00
Mustafa Akur
1b86abebe2
Add support for first, last aggregate function parsing ( #882 )
...
* Add order by parsing to functions
* Fix doc error
* minor changes
2023-05-18 14:59:14 -04:00
eitsupi
097e7ad56e
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>
2023-05-17 13:26:14 -04:00
Aljaž Mur Eržen
0113bbd924
Test trailing commas ( #859 )
...
* test: add tests for trailing commas
* tweaks
2023-05-01 08:31:17 -04:00
Aljaž Mur Eržen
3b1076c194
Support DISTINCT ON (...)
( #852 )
...
* Support "DISTINCT ON (...)"
* a test
* fix the merge
2023-04-27 15:34:54 -04:00
AviRaboah
3e92ad349f
Support identifiers beginning with digits in MySQL ( #856 )
2023-04-26 09:27:04 -04:00
Coby Geralnik
04d9f3af2e
Added support for Mysql Backslash escapes (enabled by default) ( #844 )
2023-04-10 09:56:01 -04:00
Andrew Lamb
00d071286b
Move tests from parser.rs to appropriate parse_XX tests ( #845 )
...
* Move tests from parser.rs to appropriate parse_XX tests
* move to postgres tests
* move more tests
2023-04-10 09:48:23 -04:00
Andrew Lamb
7f4c9132d7
Fix table alias parsing regression in 0.31.0 by backing out redshift column definition list ( #827 )
...
* Fix table alias parsing regression
* Revert "Support redshift's columns definition list for system information functions (#769 )"
This reverts commit c35dcc93a7
.
2023-03-06 11:43:22 -05:00
Maciej Skrzypkowski
c35dcc93a7
Support redshift's columns definition list for system information functions ( #769 )
...
* parsing of redshift's column definition list for
pg_get_late_binding_view_cols
pg_get_cols
pg_get_grantee_by_iam_role
pg_get_iam_role_by_user
* Renamed ColsDefinition to TableAliasDefinition
added generic dialect
* Tests fixed
* Visitor for IdentPair
* Parsing redshift table alias based on indentifier and
parentheses instead of function name
* fix clippy
---------
Co-authored-by: Maciej Skrzypkowski <maciej.skrzypkowski@satoricyber.com>
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-02-17 14:04:59 -05:00
Maciej Skrzypkowski
488e8a8156
Support MySQL Character Set Introducers ( #788 )
...
* MySQL Character Set Introducers
* Documentation fix
* Parsing string introducer from Token::word
* Fixed lint
* fix clippy
---------
Co-authored-by: Maciej Skrzypkowski <maciej.skrzypkowski@satoricyber.com>
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-02-17 13:38:43 -05:00
Y Togami
b31ede7733
chore: fix clippy error in ci ( #803 )
...
* chore: fix clippy error in ci
* chore: fix fmt
2023-02-17 13:24:50 -05:00
Jeffrey
98403c07b1
Allow parsing of mysql empty row inserts ( #783 )
2023-01-02 06:51:13 -05:00
김진성 Kim Jinsung
3e990466f8
Support CREATE TABLE ON UPDATE <expr>
Function ( #685 )
...
* feat : OnUpdate Function Implement
* feat : add GenericDialect Options
2022-12-28 08:59:09 -05:00
Audun Skaugen
fb02344131
Generalize locking clause ( #759 )
...
Postgres supports more generalized locking clauses, for example:
FOR UPDATE OF <table_name> SKIP LOCKED
also, multiple locking clauses. Generalize the parser to support these.
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2022-12-13 17:19:07 -05:00
Aljaž Mur Eržen
8e1c90c0d8
Support MySQL ROWS
syntax for VALUES
( #737 )
...
* Adapt VALUES to MySQL dialect
* Update src/ast/query.rs
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
* remove *requirement* for ROW
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2022-12-01 09:46:55 -05:00
Augusto Fotino
5e1d9f8d6e
Derive PartialOrd
, Ord
, and Copy
whenever possible ( #717 )
...
This allow other projects to use our structures inside others that need
those.
2022-11-30 12:25:59 -05:00
Augusto Fotino
09d53623bc
Support MATCH AGAINST
( #708 )
...
Support added for both MySQL and Generic dialects.
2022-11-30 12:16:50 -05:00
main()
814367a6ab
Implement ON CONFLICT and RETURNING ( #666 )
...
* Implement RETURNING on INSERT/UPDATE/DELETE
* Implement INSERT ... ON CONFLICT
* Fix tests
* cargo fmt
* tests: on conflict and returning
Co-authored-by: gamife <gamife9886@gmail.com>
2022-11-11 16:15:31 -05:00
Augusto Fotino
65c5a37bce
feat: add precision for TIME, DATETIME, and TIMESTAMP data types ( #701 )
...
Now all those statements are both parsed and displayed with precision
and timezone info. Tests were added to the ones presented in the ANSI
standard.
2022-11-11 16:06:57 -05:00
Augusto Fotino
cdf4447065
feat: add FULLTEXT option on create table for MySQL and Generic dialects ( #702 )
2022-11-11 16:03:39 -05:00
ding-young
27c3ec87db
Support ALTER TABLE DROP PRIMARY KEY
( #682 )
...
* parse alter table drop primary key
* cargo nightly fmt
* add Dialect validation
2022-11-02 10:15:33 -04:00
AugustoFKL
2aba3f8c91
Adding MySQL table option {INDEX | KEY} to the CREATE TABLE definiton (partial). ( #665 )
...
Theoretically the behavior should be the same as CREATE INDEX, but we
cannot make that assumption, so the parse is (almost) identical as the
input.
Breaking changes:
- Now HASH and BTREE are KEYWORDS, and using them as names can result in
errors.
- Now 'KEY' and 'INDEX' column names start the parsing of a table constraint if unquoted for the Generic dialect. This results in possible conficts if canonical results are compared for all dialects if a column is named 'key' without quotes.
2022-10-19 17:24:38 -04:00
AugustoFKL
3beecc0a7a
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
2022-10-01 17:23:06 -04:00
AugustoFKL
e951cd5278
#625 adding mediumint support ( #630 )
2022-09-28 16:26:17 -04:00
Dmitry Patsura
6d8aacd85b
feat: Support expression in SET statement ( #574 )
...
Co-authored-by: Alex Vasilev <vaspiring@gmail.com>
2022-08-18 13:29:55 -04:00