AugustoFKL
e951cd5278
#625 adding mediumint support ( #630 )
2022-09-28 16:26:17 -04:00
AugustoFKL
46b7c03788
Adding DOUBLE PRECISION to data types, parsing it, and tests ( #629 )
2022-09-28 16:26:11 -04:00
ding-young
6c8f31c367
Fix parsing CLOB, BINARY, VARBINARY, BLOB data type ( #618 )
...
* fix(parser): parse clob, binary, varbinary, blob data type
* feat(tests): parse_cast tests for LOB, BINARY datatype
2022-09-28 07:02:30 -04:00
Andrew Lamb
6afd194e94
Disambiguate CREATE ROLE ... USER and GROUP ( #628 )
2022-09-27 13:56:29 -04:00
Andrew Lamb
2b21da2439
Add test for optional WITH in CREATE ROLE
( #627 )
2022-09-27 10:23:33 -04:00
Ben Cook
91087fcba0
Support CREATE ROLE and DROP ROLE ( #598 )
...
* Parse GRANT ROLE and DROP ROLE
* Gate create role on dialect
* cargo fmt
* clippy
* no-std
* clippy again
2022-09-27 09:58:36 -04:00
Ophir LOJKINE
604f755a59
Fix parse error on some prepared statement placeholders ( #604 )
...
sqlparser can now parse all the prepared statement placeholders supported by SQLite:
- ?
- ?NNN
- @VVV
- :VVV
- $VVV
See: https://www.sqlite.org/lang_expr.html#varparam
This does not break existing support for postgresql's '@' operator
Fixes #603
2022-09-27 09:58:26 -04:00
ding-young
3ac1bb5b80
Move Value::Interval
to Expr::Interval
( #609 )
...
* refactor(value): convert Value::Interval to Expr::Interval
* test(sqlparser_common): modify test case
* refactor(parser): rename func parse_interval
* refactor(tests) rename parse_interval test func
2022-09-27 09:30:48 -04:00
dependabot[bot]
d971a029dd
Update criterion requirement from 0.3 to 0.4 in /sqlparser_bench ( #611 )
...
Updates the requirements on [criterion](https://github.com/bheisler/criterion.rs ) to permit the latest version.
- [Release notes](https://github.com/bheisler/criterion.rs/releases )
- [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/bheisler/criterion.rs/compare/0.3.0...0.4.0 )
---
updated-dependencies:
- dependency-name: criterion
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-27 09:07:59 -04:00
Maciej Skrzypkowski
d4e5b4d5e8
Support National string literal with lower case n
( #612 )
...
* National string literal with lower case n
It's used by Snowflake
* Corrected DB name
Co-authored-by: Maciej Skrzypkowski <maciej.skrzypkowski@satoricyber.com>
2022-09-27 09:07:13 -04:00
Alex Qyoun-ae
0724ef13a4
Box Query
in Cte
( #572 )
2022-09-27 09:03:58 -04:00
Daniël Heres
39761b0599
Add optional format for explain ( #621 )
...
* Add format for explain
* Add comment
2022-09-26 07:22:03 -04:00
Justin Joyce
495ab59aad
Support SHOW FUNCTIONS
( #620 )
...
* support SHOW FUNCTIONS
* Update keywords.rs
* Update mod.rs
* Update sqlparser_common.rs
* Fix CI issues
2022-09-26 08:33:53 +02:00
Wei-Ting Kuo
fccae77c5e
support "set time zone to 'some-timezone'" ( #617 )
...
* support "set time zone"
* fix clippy
* fix test cases
2022-09-20 09:44:51 -04:00
Andy Grove
48fa79d744
update changelog ( #607 )
2022-09-08 20:13:11 -06:00
Andy Grove
fd07a17101
(cargo-release) version 0.23.0
2022-09-08 15:15:40 -06:00
Andy Grove
303f80f168
Add support for aggregate expressions with filters ( #585 )
2022-09-08 13:08:45 -06:00
Alex Qyoun-ae
0bb49cea99
feat: Support LOCALTIME
and LOCALTIMESTAMP
time functions ( #592 )
2022-08-30 10:15:39 -06:00
Andy Grove
bccd63ea07
(cargo-release) version 0.22.0
2022-08-26 17:03:42 -06:00
Andy Grove
0191839176
update changelog for 0.22 ( #595 )
2022-08-26 16:42:46 -06:00
Ayush Dattagupta
6f55dead53
Add overlay expr ( #594 )
...
* Add PLACING keyword to keywords list
* Add high level overlay expr to Expr enum
* Add parsing logic for overlay op
* add ovleray and is not true/false/unknown tests
2022-08-26 15:13:25 -06:00
Wei-Ting Kuo
95fbb55f2c
add with/without time zone ( #589 )
2022-08-26 15:11:21 -06:00
Andy Grove
72559e9b62
Add ability for dialects to override prefix, infix, and statement parsing ( #581 )
2022-08-19 05:44:14 -06:00
Andrew Lamb
7c02477151
(cargo-release) version 0.21.0
2022-08-18 14:00:13 -04:00
Andrew Lamb
dcb005e17a
Update changelog ( #584 )
2022-08-18 13:55:36 -04:00
Dmitry Patsura
6d8aacd85b
feat: Support expression in SET statement ( #574 )
...
Co-authored-by: Alex Vasilev <vaspiring@gmail.com>
2022-08-18 13:29:55 -04:00
Andy Grove
eb7f1b005e
Parse LIKE patterns as Expr not Value ( #579 )
2022-08-18 10:02:54 -06:00
Sarah Yurick
fc71719719
add unknown, is not true/false/unknown ( #583 )
2022-08-18 07:44:18 -06:00
Seo Sanghyeon
50aafa8dc1
Update Ballista link in README ( #576 )
2022-08-17 21:26:45 +03:00
Ayush Dattagupta
42c5d43b45
Support TRIM
from with optional FROM
clause ( #573 )
...
* Split trimwhereFlag and trim_char expr to seperate members of Expr::Trim
* update trim parsing logic to handle no flag + char from expr combo
* add tests
* Allow trim flag without trim_what expr
* Add trim flag without trim_what test
2022-08-15 17:58:43 -04:00
Alex Qyoun-ae
31ba0012f7
Support PostgreSQL array subquery constructor ( #566 )
2022-08-12 14:08:56 -04:00
Andrew Lamb
61dc3e9bf9
Clarify contribution licensing ( #570 )
...
* Clarify contribution licensing
* less whitespace
2022-08-11 17:29:27 -04:00
Andrew Lamb
36de9a69c6
Update for new clippy ints ( #571 )
2022-08-11 17:18:46 -04:00
Ayush Dattagupta
f07063f0cd
Support for SIMILAR TO
syntax, change Like
and ILike
to Expr
variants, allow escape char for like/ilike ( #569 )
...
* Remove [not]like,[not]ilike from binary operator list
* Add like, ilike and similar as an expr variant. Also adds support for escape char to like/ilike
* Add parsing logic for similar to, update parsing logic for like/ilike
* Add tests for similar to, update tests for like/ilike
* Fix linter warnings
* remove additional copyright license from files
* Add more coverage w/wo escape char for like,ilike,similar to
2022-08-11 15:44:26 -04:00
Alex Qyoun-ae
18881f8fcf
Support SHOW COLLATION
( #564 )
2022-08-11 09:28:34 -04:00
Dmitry Patsura
54a29e872d
feat: Parse special keywords as functions (current_user, user, etc) ( #561 )
...
* feat: Parse special keywors as functions (current_user, user, etc)
* explain special field
2022-08-11 08:30:06 -04:00
Alex Qyoun-ae
b6e36ad760
Support SHOW TABLES
( #563 )
2022-08-11 08:24:40 -04:00
Dmitry Patsura
221e9c2bab
feat: Support SET NAMES literal [COLLATE literal] ( #558 )
...
* feat: Support SET NAMES literal [COLLATE literal]
* feat: Support SET NAMES DEFAULT
* clippy
2022-08-11 06:55:55 -04:00
Yoshiyuki Komazaki
aabafc9fc8
feat: Support trailing commas ( #557 )
2022-08-11 06:54:04 -04:00
Alex Qyoun-ae
8176561100
Support expressions in LIMIT
/OFFSET
( #567 )
2022-08-11 06:50:18 -04:00
Alex Qyoun-ae
a9db6ed139
Support USE db
( #565 )
2022-08-11 06:49:20 -04:00
Alex Qyoun-ae
71c3ec057b
Support SHOW COLUMNS FROM tbl FROM db
( #562 )
2022-08-11 06:42:08 -04:00
Dmitry Patsura
e2b943799a
feat: Initial support for parsing MySQL show variables ( #559 )
...
Co-authored-by: Alex Vasilev <vaspiring@gmail.com>
2022-08-11 06:35:59 -04:00
Andrew Lamb
231370a770
(cargo-release) version 0.20.0
2022-08-05 14:10:58 -04:00
Andrew Lamb
bb5e2782b5
Make 0.20.0 release notes ( #555 )
2022-08-05 14:01:25 -04:00
Jamie Slome
9648a52715
Create SECURITY.md ( #546 )
2022-08-05 13:54:38 -04:00
Kaushik Iska
1c64129f76
[postgres] Add support for custom binary operators ( #548 )
...
* [postgres] Add support for custom binary operators
More details about operators in general are at:
https://www.postgresql.org/docs/current/sql-createoperator.html . This
patch attempts to parse `SELECT` queries that reference an operator
using `OPERATOR(<optional_schema>.<operator_name>)` syntax.
This is a PostgreSQL extension. There are no provisions for user-defined operators in the SQL standard.
* fix code-review comments and ci failures
* Allow custom operator in generic dialects too
* Parse `OPERATOR` as Vec<String>
* fix: std
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2022-08-05 13:53:58 -04:00
Dmitry Patsura
6c98228e71
feat: Allow to use >> and << binary operators in Generic dialect ( #553 )
2022-08-05 06:25:57 -04:00
Wei-Ting Kuo
076b587bb2
Support NestedJoin
with an alias ( #551 )
...
* add alias for nestedjoin
* fmt
* add/modify test cases
* inline nestedjoin instead of macro
2022-08-03 19:41:15 -04:00
Yoshi Togami
e24951e080
feat: support SAFE_CAST for bigquery ( #552 )
...
Co-authored-by: togami2864 <yoshiaki.togami@plaid.co.jp>
2022-08-03 09:17:39 -04:00