Andrew Lamb
4efe55dd8a
Remove most instances of #[cfg(feature(bigdecimal))]
in tests ( #910 )
2023-07-17 14:19:51 -04:00
Igor Izvekov
a50671d95d
feat: support PGOverlap operator ( #912 )
2023-07-06 09:27:18 -04:00
Jay Zhan
20ac38b4da
Support multi args for unnest ( #909 )
...
Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-06-30 16:50:46 -04:00
liadgiladi
f05f71e20d
Support ALTER VIEW
, MySQL syntax ( #907 )
...
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-06-29 13:33:51 -04:00
Robert Pack
9effeba0d8
feat: add deltalake keywords ( #906 )
2023-06-29 13:30:21 -04:00
Andrew Lamb
efd8cb7fd1
chore: Release sqlparser version 0.35.0
2023-06-23 10:54:52 -04:00
Andrew Lamb
631eddad78
Update CHANGELOG.md for version 0.35.0
( #904 )
2023-06-23 10:53:18 -04:00
parkma99
04c9fbaead
update parse STRICT tables ( #903 )
...
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-06-23 10:48:04 -04:00
Igor Izvekov
8877cbafa6
fix: unary negation operator with operators: Mul
, Div
and Mod
( #902 )
2023-06-22 11:15:31 -04:00
delsehi
f72b5a5d9b
Support basic CREATE PROCEDURE of MSSQL ( #900 )
...
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-06-22 11:09:14 -04:00
dawg
75f18ecfda
Add support for DuckDB's CREATE MACRO statements ( #897 )
2023-06-21 15:12:58 -04:00
Jeremy Dyer
2296de2bc4
Add fn support_group_by_expr to Dialect trait ( #896 )
2023-06-15 09:10:56 -04:00
Sam Rijs
2b37e4ae6e
Add support for CREATE TYPE (AS) statements ( #888 )
...
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-06-08 06:56:39 -04:00
dependabot[bot]
e8cad6ab65
Update criterion requirement from 0.4 to 0.5 in /sqlparser_bench ( #890 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-24 17:41:59 -04:00
Andrew Lamb
4607addf4d
chore: Release sqlparser version 0.34.0
2023-05-19 09:47:43 -04:00
Andrew Lamb
adfa37d565
Update CHANGELOG for 0.34.0
release ( #884 )
2023-05-19 09:45:23 -04:00
Andrew Lamb
f740d528da
Fix merge conflict ( #885 )
2023-05-18 15:28:11 -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
33b12acce7
feat: add DuckDB dialect ( #878 )
...
* feat: add DuckDB dialect
* formatting
* fix conflict
* support // in GenericDialect
* add DucDbDialect to all_dialects
* add comment from suggestion
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
* fix: support // in GenericDialect
---------
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-05-18 14:57:29 -04:00
Maciej Obuchowski
3be19c7666
truncate: table as optional keyword ( #883 )
...
Signed-off-by: Maciej Obuchowski <obuchowski.maciej@gmail.com>
2023-05-18 14:55:02 -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
Maximilian Roos
feaa13c9a9
feat: Add custom operator ( #868 )
...
* feat: Add custom operator
From #863
- It doesn't parse anything — I'm not sure how to parse ` SELECT 'a' REGEXP '^[a-d]';` with `REGEXP` as the operator... (but fine for my narrow purpose)
- If we need tests, where would I add them?
* Update src/ast/operator.rs
---------
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-05-17 13:12:50 -04:00
Jeffrey
4559d87a82
Add parse_multipart_identifier function to parser ( #860 )
...
* Add parse_multipart_identifier function to parser
* Update doc for parse_multipart_identifier
* Fix conflict
2023-05-17 13:04:57 -04:00
Mustafa Akur
482a3ad417
Add support for multiple expressions, order by in aggregations ( #879 )
...
* Add support for multiple expressions, order by in aggregations
* Fix formatting errors
* Resolve linter errors
2023-05-17 13:04:33 -04:00
Andrew Kane
ae3b5844c8
Include license file in published crate ( #871 )
2023-05-09 20:48:57 -04:00
Armin Primadi
f15da8772e
Make Expr::Interval its own struct ( #872 )
...
* Make Expr::Interval its own struct
* Add test interval display
* Fix cargo fmt
2023-05-09 20:42:03 -04:00
Okue
b29b551fa1
Fix tiny typo in custom_sql_parser.md ( #864 )
2023-05-02 07:08:38 -04:00
Andrew Lamb
be85f54ca3
Fix logical merge conflict ( #865 )
2023-05-02 07:07:56 -04:00
Armin Primadi
0ff863b2c7
Add support for query source in COPY .. TO statement ( #858 )
...
* Add support for query source in COPY .. TO statement
* Fix compile error
2023-05-01 15:39:18 -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
f72e2ec382
Support multiple-table DELETE syntax ( #855 )
2023-04-27 11:41:20 -04:00
Andrew Lamb
5ecf633e31
Add dialect_from_str
and improve Dialect
documentation ( #848 )
...
* Add `dialect_from_str` and improve `Dialect` documentation
* cleanup
* fix compilation with nostd
2023-04-27 11:37:11 -04:00
pawel.leszczynski
d8af92536c
support COPY INTO in snowflake ( #841 )
...
Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com>
2023-04-27 11:30:48 -04:00
AviRaboah
3e92ad349f
Support identifiers beginning with digits in MySQL ( #856 )
2023-04-26 09:27:04 -04:00
Brian Anglin
6b2b3f1f6c
Adds clickhouse to example ( #849 )
2023-04-12 15:04:46 -04:00
Andrew Lamb
00719e3cf3
(cargo-release) version 0.33.0
2023-04-10 12:13:03 -04:00
Andrew Lamb
28e558c286
Changelog for 0.33.0
( #846 )
...
* Changelog for `0.33.0`
* typo
2023-04-10 12:11:14 -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
Nick Randall
784a19138f
Support "UPDATE" statement in "WITH" subquery ( #842 )
...
* fix(WITH): allow "UPDATE" statement in "WITH" subquery"
* add test case
* update test to validate round-trip
2023-04-09 07:41:56 -04:00
pawel.leszczynski
29dea5d017
support PIVOT table syntax ( #836 )
...
Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com>
2023-03-26 07:33:35 -04:00
pawel.leszczynski
79c7ac73df
support CREATE/DROP STAGE for Snowflake ( #833 )
...
Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com>
2023-03-26 07:31:37 -04:00
Maciej Skrzypkowski
a1b7341b87
Non-Latin characters support ( #840 )
...
* Non latin characters
---------
Co-authored-by: Maciej Skrzypkowski <maciej.skrzypkowski@satoricyber.com>
* Test for mysql
---------
Co-authored-by: Maciej Skrzypkowski <maciej.skrzypkowski@satoricyber.com>
2023-03-23 07:07:17 -04:00
Felix Yan
eb67d489bb
Correct typos in parser.rs ( #838 )
2023-03-18 11:23:18 -04:00
sam
a8a8e65b7c
PostgreSQL: GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY and GENERATED ALWAYS AS ( generation_expr ) support ( #832 )
...
* GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY [ ( sequence_options ) basic impl - test are failing.
* PostgreSQL GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY [ ( sequence_options ) and GENERATED ALWAYS AS ( generation_expr ) STORED implementation.
2023-03-16 05:54:00 -04:00
pawel.leszczynski
4ff3aeb040
support IF EXISTS in COMMENT statements ( #831 )
...
* support IF EXISTS in COMMENT statements
Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com>
* Update src/ast/mod.rs
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
---------
Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com>
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-03-09 08:06:39 -05:00
pawel.leszczynski
548191814c
support snowflake alter table swap with ( #825 )
...
Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com>
2023-03-07 07:16:39 -05:00
Andrew Lamb
9ea396d0da
Improve documentation on verified_*
methods ( #828 )
2023-03-07 07:07:29 -05:00