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
Andrew Harper
a464f8e8d7
Improve support for cursors for SQL Server ( #1831 )
...
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-05-02 05:25:30 +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 Lamb
a5b9821d1d
Update 56.0.0
Changelog with latest commits ( #1832 )
2025-04-29 21:55:22 +02:00
Ifeanyi Ubah
c0921dceb9
Prepare for 0.56.0 release: Version and CHANGELOG ( #1822 )
2025-04-29 21:32:04 +02:00
tomershaniii
2b5bdcef0b
Snowflake: Add support for CONNECT_BY_ROOT
( #1780 )
2025-04-29 08:44:19 +02:00
Ifeanyi Ubah
4e392f5c07
Handle missing login in changelog generate script ( #1823 )
2025-04-28 13:03:39 -04:00
Andrew Harper
7703fd0d31
Add DECLARE ... CURSOR FOR
support for SQL Server ( #1821 )
2025-04-24 20:16:49 +02:00
Andrew Harper
87d190734c
Add OR ALTER
support for CREATE VIEW
( #1818 )
2025-04-23 18:55:57 +02:00
Andrew Harper
2eb1e7bdd4
Add CREATE FUNCTION
support for SQL Server ( #1808 )
2025-04-23 18:10:57 +02:00
Ophir LOJKINE
945f8e0534
Add support for XMLTABLE
( #1817 )
2025-04-23 18:03:06 +02:00
Jax Liu
3ec80e187d
enable supports_filter_during_aggregation
for Generic dialect ( #1815 )
2025-04-19 07:14:45 -04:00
Andrew Harper
4a487290ce
Add support for PRINT
statement for SQL Server ( #1811 )
2025-04-18 08:59:39 +02:00
Bruno Clemente
81d8909e00
Fix STRAIGHT_JOIN
constraint when table alias is absent ( #1812 )
...
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-04-15 19:05:20 +02:00
Adam Johnson
3ad13af563
Add support for parenthesized subquery as IN
predicate ( #1793 )
2025-04-15 19:01:18 +02:00
bar sela
514d2ecdaf
Snowflake: support nested join without parentheses ( #1799 )
2025-04-15 07:57:26 +02:00
Andrew Harper
6566c47593
Add DROP TRIGGER
support for SQL Server ( #1813 )
2025-04-15 07:50:50 +02:00
Luca Cappelletti
896c088153
Add support for INHERITS
option in CREATE TABLE
statement ( #1806 )
2025-04-12 18:03:43 +02:00
Roman Borschel
bbc80d7537
Fix tokenization of qualified identifiers with numeric prefix. ( #1803 )
...
Co-authored-by: Roman Borschel <roman@cluvio.com>
2025-04-11 20:58:43 +02:00
Yoav Cohen
d090ad4ccf
Snowflake COPY INTO target columns, select items and optional alias ( #1805 )
2025-04-11 11:49:43 +02:00
Roman Borschel
67c3be075e
Add support for MySQL's STRAIGHT_JOIN join operator. ( #1802 )
...
Co-authored-by: Roman Borschel <roman@cluvio.com>
2025-04-10 12:26:13 +02:00
Roman Borschel
cfd8951452
Allow literal backslash escapes for string literals in Redshift dialect. ( #1801 )
...
Co-authored-by: Roman Borschel <roman@cluvio.com>
2025-04-10 06:59:44 +02:00
Roman Borschel
0d2976d723
Add support for MSSQL IF/ELSE statements. ( #1791 )
...
Co-authored-by: Roman Borschel <roman@cluvio.com>
2025-04-06 07:09:24 +02:00
Alexander Beedie
4deed26006
Support additional DuckDB integer types such as HUGEINT, UHUGEINT, etc ( #1797 )
...
Co-authored-by: Alexander Beedie <alexander.beedie@adia.ae>
2025-04-05 20:41:39 +02:00
DilovanCelik
610096cad8
MSSQL: Add support for functionality MERGE
output clause ( #1790 )
2025-04-05 20:37:28 +02:00
Roman Borschel
3ed4ad9c66
Allow single quotes in EXTRACT() for Redshift. ( #1795 )
...
Co-authored-by: Roman Borschel <roman@cluvio.com>
2025-04-04 22:18:31 +02:00
Ifeanyi Ubah
a847e44105
Fix clippy lint on rust 1.86 ( #1796 )
2025-04-04 06:34:18 -04:00
Yoav Cohen
7efa686d78
Extend snowflake grant options support ( #1794 )
2025-04-03 19:52:23 +02:00
LFC
776b10afe6
Add GreptimeDB to the "Users" in README ( #1788 )
2025-04-01 19:06:19 +02:00
Roman Borschel
45420cedd6
Fix: Snowflake ALTER SESSION cannot be followed by other statements. ( #1786 )
...
Co-authored-by: Roman Borschel <roman@cluvio.com>
2025-03-31 18:09:58 +02:00
Roman Borschel
25bb871175
Enable double-dot-notation for mssql. ( #1787 )
...
Co-authored-by: Roman Borschel <roman@cluvio.com>
2025-03-31 17:53:56 +02:00
Roman Borschel
91327bb0c0
Add support for Databricks TIMESTAMP_NTZ. ( #1781 )
...
Co-authored-by: Roman Borschel <roman@cluvio.com>
2025-03-31 17:51:55 +02:00
John Vandenberg
95d7b86da5
Fix typos ( #1785 )
2025-03-31 12:47:53 +02:00
Dan Draper
be98b30eb3
Add cipherstash-proxy to list of users in README.md ( #1782 )
2025-03-31 12:46:59 +02:00
bar sela
62495f2f0d
Mysql: Add support for := operator ( #1779 )
2025-03-27 22:48:57 +01:00
tomershaniii
53aba68e2d
Support qualified column names in MATCH AGAINST
clause ( #1774 )
2025-03-25 10:13:11 +01:00
Mohamed Abdeen
3a8a3bb7a5
SET statements: scope modifier for multiple assignments ( #1772 )
2025-03-22 06:38:00 +01:00
Michael Victor Zink
939fbdd4f6
Parse SUBSTR
as alias for SUBSTRING
( #1769 )
2025-03-22 06:34:43 +01:00
Mohamed Abdeen
f487cbe004
Add GLOBAL context/modifier to SET statements ( #1767 )
2025-03-20 06:52:56 +01:00
Ifeanyi Ubah
e3e88290cd
Add support for RAISE
statement ( #1766 )
2025-03-18 15:19:51 +01:00
Mohamed Abdeen
da5892802f
Add LOCK operation for ALTER TABLE ( #1768 )
2025-03-18 07:22:37 +01:00
Aleksei Piianin
10cf7c164e
Snowflake: Support dollar quoted comments ( #1755 )
2025-03-15 07:07:07 +01:00
Ifeanyi Ubah
f81aed6359
BigQuery: Add support for CREATE SCHEMA
options ( #1742 )
2025-03-14 08:00:19 +01:00
Ifeanyi Ubah
862e887a66
Add CASE
and IF
statement support ( #1741 )
2025-03-14 07:49:25 +01:00
Ifeanyi Ubah
cf4ab7f9ab
Add support for DROP MATERIALIZED VIEW
( #1743 )
2025-03-13 15:51:29 -04:00
Michael Victor Zink
fb578bb419
Preserve MySQL-style LIMIT <offset>, <limit>
syntax ( #1765 )
2025-03-12 21:24:06 +01:00