Toby Hede
a75778c8c7
Add support for ENABLE and DISABLE on ALTER TABLE for pg ( #1077 )
...
Signed-off-by: Toby Hede <toby@cipherstash.com>
2023-12-31 09:14:52 -05:00
Drew Thomas
3d2773a794
Support INSERT INTO ... DEFAULT VALUES ...
( #1036 )
2023-11-21 15:21:26 -05:00
Drew Thomas
5bdf2e6608
Add support for release and rollback to savepoint syntax ( #1045 )
2023-11-20 19:51:48 -05:00
Drew Thomas
5a3f19310e
Fix extra whitespace printed before ON CONFLICT
( #1037 )
2023-11-20 09:23:09 -05:00
Ophir LOJKINE
953c833a4a
Support mssql json and xml extensions ( #1043 )
2023-11-18 07:03:12 -05:00
Ophir LOJKINE
ff8312bfd8
add support for MAX as a character length ( #1038 )
2023-11-10 15:57:56 -05:00
Ifeanyi Ubah
2f437db2a6
Support for BigQuery struct
, array
and bytes
, int64
, float64
datatypes ( #1003 )
2023-10-25 12:57:33 -04: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
Ophir LOJKINE
57090537f0
Test that regexp
can be used as an identifier in postgres ( #1018 )
2023-10-24 06:30:05 -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
Lukasz Stefaniak
c68e9775a2
Support bigquery CAST AS x [STRING|DATE] FORMAT
syntax ( #978 )
2023-10-20 14:33:12 -04:00
Lukasz Stefaniak
2786c7eaf1
clickhouse: add support for LIMIT BY ( #977 )
2023-10-02 11:53:32 -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
William
a16791d019
Support UNNEST
as a table factor for PostgreSQL ( #968 )
2023-09-14 13:56:49 -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
Forbes Lindesay
9a39afbe07
feat: support more Postgres index syntax ( #943 )
2023-08-17 11:47:11 -04:00
r.4ntix
a49ea1908d
feat: add ALTER ROLE
syntax of PostgreSQL and MS SQL Server ( #942 )
2023-08-17 08:05:54 -04:00
Kikkon
173a6db818
Fix: use Rust idiomatic capitalization for newly added DataType
enums ( #939 )
2023-08-07 10:55:42 -04:00
Kikkon
0ddb853410
feat: support pg type alias ( #933 )
2023-07-27 06:20:24 -04:00
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
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
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
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
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
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
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
Mykhailo Bondarenko
1cf913e717
feat: Support PostgreSQL exponentiation. ( #813 )
...
* Add Postgres exponent operator
* Parse caret as BinaryOperator::PGExp in PostgreSQL
* Update sqlparser_postgres.rs
* update tests to support PGExp
* cargo fmt
* improve extensibility
* cargo fmt
* redundant code and documentation lionks
2023-03-02 10:39:39 -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
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
Alex Vasilev
072ccc0d76
feat: dollar-quoted strings support ( #772 )
...
* feat: support dollar-quoted strings
* remove comment
* unused code
* removed debugging
* added tests
* fmt
* clippy
* updated tests
2022-12-29 07:52:17 -05:00
zidaye
2d801c9fb6
Support DROP FUNCTION
syntax ( #752 )
...
* drop function
* update and to Option
* fix review
* update
* fmt
2022-12-28 07:57:51 -05:00
Audun Skaugen
3d5cc54dcf
Generalize conflict target ( #762 )
...
Postgres supports `ON CONFLICT ON CONSTRAINT <constraint_name>` to
explicitly name the constraint that fails. Support this.
2022-12-17 07:38:57 -05:00
Audun Skaugen
6d6eb4bc9b
Support json operators @>
<@
#-
@?
and @@
...
postgres supports a bunch more json operators. See
https://www.postgresql.org/docs/15/functions-json.html
Skipping operators starting with a question mark for now, since those
are hard to distinguish from placeholders without more context.
2022-12-14 14:54:56 -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
zidaye
6c545195e1
support create function definition with $$
( #755 )
...
* support create function definition using '2700775'
* fix warn
2022-12-13 17:15:33 -05:00
Augusto Fotino
b3688513eb
feat: add support for except clause on wildcards ( #745 )
2022-12-05 14:03:59 -05:00
Runji Wang
5b53df97c4
Support postgres CREATE FUNCTION
( #722 )
...
* support basic pg CREATE FUNCTION
Signed-off-by: Runji Wang <wangrunji0408@163.com>
* support function argument
Signed-off-by: Runji Wang <wangrunji0408@163.com>
* fix display and use verify in test
Signed-off-by: Runji Wang <wangrunji0408@163.com>
* support OR REPLACE
Signed-off-by: Runji Wang <wangrunji0408@163.com>
* fix compile error in bigdecimal
Signed-off-by: Runji Wang <wangrunji0408@163.com>
* unify all `CreateFunctionBody` to a structure
Signed-off-by: Runji Wang <wangrunji0408@163.com>
Signed-off-by: Runji Wang <wangrunji0408@163.com>
2022-12-01 16:08:49 -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
zidaye
042effdf14
update on conflict method ( #735 )
2022-11-30 13:33:33 -05:00
Augusto Fotino
fa6bd01b19
Support EXCLUDE support for snowflake and generic dialect ( #721 )
...
The exclude clause can be used after a possibly qualified on SELECT
2022-11-30 12:29:43 -05:00