* Add support in the position function
* Add Test
* Add lint fixes
* Remove if
* Change from to in
* Remove special method for position
* Fix lint
* PR Review
* Add support of nvarchar data type
* Change the format type with capitals
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
* Add Test
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
* implement parsing COPY statement
* support COPY option syntax before PostgreSQL version 9.0
Signed-off-by: Runji Wang <wangrunji0408@163.com>
* update COPY tests
Signed-off-by: Runji Wang <wangrunji0408@163.com>
* improve docs for COPY
Signed-off-by: Runji Wang <wangrunji0408@163.com>
* test and fix AS in COPY
Signed-off-by: Runji Wang <wangrunji0408@163.com>
* recover original test cases
* fix cargo clippy
* add support for MERGE statement
Signed-off-by: Maciej Obuchowski <obuchowski.maciej@gmail.com>
* fix lint errors
Signed-off-by: Maciej Obuchowski <obuchowski.maciej@gmail.com>
* support MySQL UNSIGNED
* fix: 🐛 `unsigned` is not column option
* test: 💍 add `unsigned` test
* fix: 🐛 `unsigned` is not column option
* feat: 🎸 declare unsigned data_types
* feat: 🎸 display unsigned
* fix: 🐛 unsigned is not column type option
* feat: 🎸 parse_data_type can parse unsigned
* feat: 🎸 int or decimal or float is unsigned selectable
* fix: 🐛 FLOAT/DOUBLE/DECIMAL + UNSIGNED is not recommended
https://dev.mysql.com/doc/refman/8.0/en/numeric-type-attributes.html
* test: 💍 add test
* style: 💄 fmt
* fix inconsistency between parse_grant_permissions and matched keywords
* Make it clear the error is an internal problem
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
* Inital support in current_timestamp
* Support time functions
* Add Test
* Fix order of offset
* Merge from main
* Fix PR
* Update Test
* Do not allow repeated LIMIT or OFFSET
Co-authored-by: Yuval Shkolar <yuval@illumex.ai>
* Inital support in current_timestamp
* Support time functions
* Add Test
* Fix PR
* Fix tests
* Add Support for distinct with parentheses
* Fix nightly
* Add FunctionArgExpr and remove Expr::[Qualified]Wildcard,
There is no use case of `Expr::Wildcard` and `Expr::QualifiedWildcard` only except for function argments.
Add `FunctionArgExpr` to have `Wildcard` and `QualifiedWildcard`, and remove wildcards in `Expr`.
* Apply `FunctionArgExpr` to sqlparser_mysql tests
* add support for snapshot id in set transaction
Signed-off-by: poonai <rbalajis25@gmail.com>
* add support for default session transaction characteristics
Signed-off-by: poonai <rbalajis25@gmail.com>
* add additional assertion for parse_set_transaction test
Signed-off-by: poonai <rbalajis25@gmail.com>
* Fix clippy
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
* * implement the ON DUPLICATE KEY syntax for MySQL in an INSERT statement
* * add MySQL to the cli example
* remove the dialect check for the ON DUPLICATE KEY insert to support
custom dialects and unwrap some missing results
* * use the Assignment DataType for the ON DUPLICATE KEY UPDATE
* * add support for table aliases in an UPDATE statement
* add support for JOINS in an UPDATE statement (for MySQL)
* * implement the MySQL ALTER TABLE CHANGE COLUMN syntax
* * fix the formatting of the else * rename the parse_identifiers_strict
to parse_identifiers_non_keywords
* Parse SUBSTRING calls that are separated with a comma instead of
keywords
* Fix the linting errors
Co-authored-by: Piotr <piotr.morawski@nc-vision.com>
Co-authored-by: Piotr Morawski <contact@peter-morawski.de>
* Add basic support for GRANT privileges on tables and sequences
* Cargo fmt
* Make enum for granted privileges
* Implement and use Display for GrantObjects
* Simplify Display for GrantPrivileges
* Add column privileges
* Add second column privilege to test
* Add REVOKE privileges and reformat
* Fix some clippy warnings
* Fix more clippy
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
* Move the keywords mod from dialect mod into the root of library
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
* re-export keywords from dialect for backwards compatiblity
Signed-off-by: koushiro <koushiro.cqx@gmail.com>