James Sadler
cfe6dcaaff
Merge 365cfb1bdf
into 1bbc05cdff
2025-06-26 20:56:07 +10:00
Mohamed Abdeen
1d0dc7cdd8
Postgres: Add support for text search types ( #1889 )
2025-06-22 09:02:51 +02:00
Mohamed Abdeen
84c3a1b325
MySQL: [[NOT] ENFORCED]
in CHECK constraint ( #1870 )
2025-06-07 06:48:40 +02:00
Mohamed Abdeen
4cf5e571d3
Postgres: Apply ONLY
keyword per table in TRUNCATE stmt ( #1872 )
2025-06-06 09:10:03 +02:00
Artem Osipov
5327f0ce13
Add ICEBERG keyword support to ALTER TABLE statement ( #1869 )
2025-06-04 19:49:07 +02:00
Luca Cappelletti
05d7ffb1d5
Handle optional datatypes properly in CREATE FUNCTION
statements ( #1826 )
...
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-05-21 05:49:28 +02:00
Mohamed Abdeen
c6e897dc12
Postgresql: Add REPLICA IDENTITY
operation for ALTER TABLE
( #1844 )
2025-05-14 09:40:44 +02:00
James Sadler
365cfb1bdf
fix: allow arbitrary operators with ANY and ALL on Postgres
...
In sqlparser PR #963 a check was introduced which limits which operators can be used with `ANY` and `ALL` expressions.
Postgres can parse more (possibly _all_ binary operators, investigation pending) in this location. Postgres only seems to care that the operator yields a boolean - which is a semantic error, not a syntax (parse) error.
Example (semantic error, not a parse error):
```
select 123 % ANY(array[246]);
ERROR: op ANY/ALL (array) requires operator to yield boolean
LINE 1: select 123 % ANY(array[246]);
^
```
The following code in `src/parser/mod.rs:2893-2908` is where the allowlist of operators is enforced:
```rust
if !matches!(
op,
BinaryOperator::Gt
| BinaryOperator::Lt
| BinaryOperator::GtEq
| BinaryOperator::LtEq
| BinaryOperator::Eq
| BinaryOperator::NotEq
) {
return parser_err!(
format!(
"Expected one of [=, >, <, =>, =<, !=] as comparison operator, found: {op}"
),
tok.span.start
);
};
```
2025-05-07 22:33:05 +10:00
Luca Cappelletti
ac1c339666
Added support for CREATE DOMAIN
( #1830 )
2025-05-04 23:21:44 +02:00
Andrew Harper
a497358c3a
Add CREATE TRIGGER
support for SQL Server ( #1810 )
2025-05-03 16:59:13 +02:00
benrsatori
728645fb31
Add all missing table options to be handled in any order ( #1747 )
...
Co-authored-by: Tomer Shani <tomer.shani@satoricyber.com>
2025-05-02 15:16:59 +02:00
Luca Cappelletti
483394cd1a
Added support for DROP DOMAIN
( #1828 )
2025-05-02 05:16:24 +02:00
Simon Vandel Sillesen
e5d2215267
Support some of pipe operators ( #1759 )
2025-05-02 05:13:47 +02:00
Andrew Harper
2eb1e7bdd4
Add CREATE FUNCTION
support for SQL Server ( #1808 )
2025-04-23 18:10:57 +02:00
Luca Cappelletti
896c088153
Add support for INHERITS
option in CREATE TABLE
statement ( #1806 )
2025-04-12 18:03:43 +02:00
Mohamed Abdeen
3a8a3bb7a5
SET statements: scope modifier for multiple assignments ( #1772 )
2025-03-22 06:38:00 +01:00
Mohamed Abdeen
f487cbe004
Add GLOBAL context/modifier to SET statements ( #1767 )
2025-03-20 06:52:56 +01:00
Ifeanyi Ubah
f81aed6359
BigQuery: Add support for CREATE SCHEMA
options ( #1742 )
2025-03-14 08:00:19 +01:00
Michael Victor Zink
fb578bb419
Preserve MySQL-style LIMIT <offset>, <limit>
syntax ( #1765 )
2025-03-12 21:24:06 +01:00
Mohamed Abdeen
85f855150f
SET with a list of comma separated assignments ( #1757 )
2025-03-12 21:02:39 +01:00
Luca Cappelletti
6ec5223f50
Extend support for INDEX parsing ( #1707 )
...
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-03-04 06:59:39 +01:00
Michael
648efd7057
feat: adjust create and drop trigger for mysql dialect ( #1734 )
2025-02-25 07:50:29 +01:00
Ophir LOJKINE
c335c8883b
Store spans for Value expressions ( #1738 )
2025-02-25 07:33:57 +01:00
benrsatori
339239d0c5
Add support for PostgreSQL/Redshift geometric operators ( #1723 )
2025-02-20 19:50:32 +01:00
Michael Victor Zink
97f0be6991
Treat COLLATE like any other column option ( #1731 )
2025-02-20 06:26:20 +01:00
Ifeanyi Ubah
b482562618
Add support for EXECUTE IMMEDIATE
( #1717 )
2025-02-19 18:54:14 +01:00
Ifeanyi Ubah
3e90a18f6d
Replace Method
and CompositeAccess
with CompoundFieldAccess
( #1716 )
2025-02-19 18:49:42 +01:00
Jesse Stuart
c75a992621
Add support for Postgres ALTER TYPE
( #1727 )
2025-02-17 20:12:59 +01:00
Armin Ronacher
46cfcfe8f7
Implement FROM-first selects ( #1713 )
2025-02-09 06:10:58 +01:00
Michael Victor Zink
cad49232c1
Parse Postgres VARBIT datatype ( #1703 )
2025-02-08 07:24:29 +01:00
Rémy SAISSY
257da5a82c
Add RETURNS TABLE() support for CREATE FUNCTION in Postgresql ( #1687 )
...
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-02-03 08:27:37 +01:00
Paul Grau
447142c6d0
Make TypedString preserve quote style ( #1679 )
2025-01-31 07:04:41 +01:00
Ifeanyi Ubah
9c384a9194
Fix CREATE FUNCTION
round trip for Hive dialect ( #1693 )
2025-01-30 17:45:31 -05:00
Rémy SAISSY
a7e984099f
Fix DDL generation in case of an empty arguments function. ( #1690 )
2025-01-30 07:50:30 +01:00
Michael Victor Zink
252fdbab82
Allow plain JOIN without turning it into INNER ( #1692 )
2025-01-30 07:15:57 +01:00
Ayman Elkfrawy
211b15e790
Enhance object name path segments ( #1539 )
2025-01-26 15:13:51 +01:00
Denys Tsomenko
c7c0de6551
Add support for Create Iceberg Table statement for Snowflake parser ( #1664 )
2025-01-20 21:39:44 +01:00
Simon Sawert
0c3b6c0974
Add support for ClickHouse FORMAT
on INSERT
( #1628 )
2025-01-10 18:17:28 +01:00
cjw
b09514e492
feat: support INSERT INTO [TABLE] FUNCTION
of Clickhouse ( #1633 )
...
Co-authored-by: Kermit <chenjiawei1@xiaohongshu.com>
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-01-10 15:23:56 +01:00
Michael Victor Zink
4fdf5e1b30
Fix MySQL parsing of GRANT, REVOKE, and CREATE VIEW ( #1538 )
2025-01-10 00:31:06 +01:00
Stepan Koltsov
397bceb241
Replace ReferentialAction
enum in DROP
statements ( #1648 )
2025-01-08 19:27:25 +01:00
Yoav Cohen
8cfc46277f
Add support for MySQL's INSERT INTO ... SET syntax ( #1641 )
2025-01-06 20:13:38 +01:00
Ramnivas Laddad
7dbf31b587
Add support for DROP EXTENSION ( #1610 )
2024-12-27 13:19:42 +01:00
Jax Liu
0647a4aa82
Consolidate MapAccess
, and Subscript
into CompoundExpr
to handle the complex field access chain ( #1551 )
2024-12-22 15:28:44 +01:00
Yoav Cohen
316bb14135
Add support for TABLESAMPLE ( #1580 )
2024-12-15 10:40:25 +01:00
Ifeanyi Ubah
a13f8c6b93
Add support for ODBC functions ( #1585 )
2024-12-11 17:31:55 -05:00
Michael Victor Zink
6517da6b7d
Support parsing optional nulls handling for unique constraint ( #1567 )
2024-12-03 20:09:00 -05:00
Philip Cristiano
e16b24679a
Encapsulate CreateFunction ( #1573 )
2024-12-02 12:45:14 -05:00
Ophir LOJKINE
96f7c0277a
json_object('k' VALUE 'v')
in postgres (#1547 )
...
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2024-11-30 08:01:13 -05:00
Mark-Oliver Junge
3c8fd74804
Implement Spanned
to retrieve source locations on AST nodes ( #1435 )
...
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2024-11-26 11:22:30 -05:00