AugustoFKL
777672625f
Replacing the two booleans from 'SET ROLE' to a single enum. ( #664 )
...
This way, we don't rely on the parser to have valid structures for that
statement, as the structure itself is valid.
2022-10-10 17:14:37 -04:00
AugustoFKL
a9939b0a4f
Enum to handle exact number precisios ( #654 )
2022-10-08 05:59:11 -04:00
AugustoFKL
a3194ddd52
Create table builder structure ( #659 )
...
* Create table builder structure
* Adding comments and examples and adjusting file structure
2022-10-07 16:57:10 -04:00
AugustoFKL
6392a216f0
Replacing 'disable-publish=true' flag by 'public=false', to allow compatibility with recent cargo-release versions ( #660 )
2022-10-07 16:56:27 -04:00
Ophir LOJKINE
f2b0efec0c
clippy fixes ( #656 )
2022-10-07 16:41:33 -04:00
Andrew Lamb
e7fb3d4fa7
Correct typo in readme ( #658 )
2022-10-06 15:21:56 -04:00
Sarah Yurick
cb397d19f9
Support CEIL(expr TO DateTimeField)
and FLOOR(expr TO DateTimeField)
( #635 )
...
* support ceil/floor to datetime
* Update mod.rs
* Update parser.rs
* murphys law
* Update sqlparser_common.rs
* possible fix?
* remove question mark
* ceil to floor
* Update mod.rs
* Apply suggestions from code review
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
* refactor into parse_ceil_floor_expr
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2022-10-06 15:21:25 -04:00
AugustoFKL
f7f14df4b1
647 Adding all ansii character string types, parsing them, and differentiating between each one ( #648 )
2022-10-04 06:42:29 -04:00
Andrew Lamb
977cdb2270
(cargo-release) version 0.25.0
2022-10-03 09:11:58 -04:00
Andrew Lamb
97a52cb85b
Changelog for 0.25.0
release ( #651 )
...
* Prepare for 0.25.0 release
* fixip
2022-10-03 09:01:26 -04:00
AugustoFKL
1ced0f6304
645 New schema name structure ( #646 )
2022-10-03 08:38:01 -04:00
AugustoFKL
95464ec72c
Change TIMESTAMP
and TIME
parsing so that time zone information is preserved ( #641 )
...
* 640 Fixing time zone printing format for TIMESTAMP and TIME
* 640 Removing unnecessary changes
* Update src/ast/data_type.rs
Fix comment typo
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2022-10-03 08:37:17 -04:00
AugustoFKL
3beecc0a7a
Correct order of arguments in LIMIT x,y
, restrict to MySql and generic dialects ( #642 )
...
* 613 Fixing MySQL LIMIT syntax
* 613 Reducing logic to real case scenario
* 613 Adding syntax to generic dialect
2022-10-01 17:23:06 -04:00
AugustoFKL
fb5a9747ae
Support optional precision for CLOB
and BLOB
( #639 )
...
* 638 Adjusting CLOB and BLOB with optional precision
* 638 Adding integration tests to increase coverage
* 638 Adjusting BLOB test
2022-10-01 17:15:47 -04:00
AugustoFKL
300e28bd85
636 Adjusting VARBINARY and BINARY with optional precision ( #637 )
2022-10-01 16:52:44 -04:00
Andrew Lamb
c2d68255d0
(cargo-release) version 0.24.0
2022-09-28 16:46:33 -04:00
Andrew Lamb
e2a51ad649
Release notes for 0.24.0 ( #634 )
...
* Disambiguate CREATE ROLE ... USER and GROUP
* Add changelog for 0.24
2022-09-28 16:34:48 -04:00
Sarah Yurick
d87408bdaf
Parse MILLENNIUM
( #633 )
...
* add unknown, is not true/false/unknown
* millennium
2022-09-28 16:26:29 -04:00
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