You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#168 by enabling `DATE` and other keywords to be used as
identifiers when not followed by a string literal.
A "typed string" is our term for generalized version of `DATE '...'`/`TIME '...'`/
`TIMESTAMP '...'` literals, represented as `TypedString { data_type, value }`
in the AST.
Unlike DATE/TIME/TIMESTAMP literals, this is a non-standard extension
supported by PostgreSQL at least.
This is a port of MaterializeInc/materialize#3146
Co-authored-by: Nikhil Benesch <[email protected]>
Co-authored-by: Nickolay Ponomarev <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,9 @@ Check https://github.com/andygrove/sqlparser-rs/commits/master for undocumented
13
13
- Change `Ident` (previously a simple `String`) to store the parsed (unquoted) `value` of the identifier and the `quote_style` separately (#143) - thanks @apparebit!
14
14
- Support Snowflake's `FROM (table_name)` (#155) - thanks @eyalleshem!
15
15
- Add line and column number to TokenizerError (#194) - thanks @Dandandan!
16
+
- Use Token::EOF instead of Option<Token> (#195)
16
17
- Make the units keyword following `INTERVAL '...'` optional (#184) - thanks @maxcountryman!
18
+
- Generalize `DATE`/`TIME`/`TIMESTAMP` literals representation in the AST (`TypedString { data_type, value }`) and allow `DATE` and other keywords to be used as identifiers when not followed by a string (#187) - thanks @maxcountryman!
17
19
18
20
### Added
19
21
- Support MSSQL `TOP (<N>) [ PERCENT ] [ WITH TIES ]` (#150) - thanks @alexkyllo!
@@ -26,6 +28,7 @@ Check https://github.com/andygrove/sqlparser-rs/commits/master for undocumented
26
28
- Support `LISTAGG()` (#174) - thanks @maxcountryman!
27
29
- Support the string concatentation operator `||` (#178) - thanks @Dandandan!
28
30
- Support bitwise AND (`&`), OR (`|`), XOR (`^`) (#181) - thanks @Dandandan!
31
+
- Add serde support to AST structs and enums (#196) - thanks @panarch!
29
32
30
33
### Fixed
31
34
- Report an error for unterminated string literals (#165)
0 commit comments