* support unnest
* add test
* fix ast
* Update condition for BigQueryDialect or GenericDialect
I updated condition.
This changes conditionalize parsing for only BigQueryDialect or GenericDialect.
* Add some tests
* fix test
* Parse source of MERGE as table_factor
Some MERGE queries need a table as a soruce,
added proper test showing it
* Clippy fix
Co-authored-by: Maciej Skrzypkowski <maciej.skrzypkowski@satoricyber.com>
* 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>
* 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>
* 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>