Releases: nene/sql-parser-cst
Releases · nene/sql-parser-cst
0.39.0
Breaking changes
- Support multiple names in
DROP PROCEDURE&DROP FUNCTION(02cb895, cbd0e15) - Use
FunctionSignaturetype inAlterProcedureStmt&AlterFunctionStmt(ebeae15, 88d220d) - Rename
DropFunctionStmt.functionsto.signatures(eac1972) - Don't recognize paren-less functions as plain function calls (15ada0f)
Other changes
- Upgrade to TypeScript 5.x
- Support
SETas column name (but not as implicit alias) - Support interval units (
year,month,...) as column names
0.38.2
0.38.1
0.38.0
Breaking changes to intervals parsing
- Instead of parsing interval literals in PostgreSQL as
IntervalLiteraland in other dialects asIntervalExpr, they are now always parsed asIntervalLiteral(175465f) IntervalDataTypepropertiesfieldsKwandprecisionhave been replaced withunit: IntervalUnit | IntervalUnitRange, making it more similar toIntervalLiteral(fc3f9e6)- Move
IntervalUnitandIntervalUnitRangetypes have been moved fromAllExprNodestoAllDataTypeNodes(2ae45dc)
Improved PostgreSQL intervals support
- Support
INTERVAL '15' SECOND (precision)literal syntax - Support
INTERVAL (precision) '25'literal syntax
0.37.2
0.37.1
0.37.0
Breaking changes
Major changes to how data types are parsed:
named_data_typeis now replaced withdata_type_nameandmodified_data_type(309399d, 1605b6d)INTERVALtypes are now parsed asinterval_data_type(fd1470d, b349053)with_time_zone_data_typeis now replaced withtime_data_type(df42f4a, 5c3e587)- BigQuery parametric types are now parsed as
parametric_data_type(3bc4388) - PostgreSQL builtin data type names are now parsed as keywords inside
data_type_name.data_type_identifiernode no more exists. - Other PostgreSQL data type names are parsed as identifiers.
Other changes
- PostgreSQL
NATIONAL CHARdata types are now supported.