Commit Graph

450 Commits

Author SHA1 Message Date
Simon Binder 3f74d65e69
Support nested columns for any result set 2023-07-23 23:57:00 +02:00
Simon Binder cc83a58d89
Report invalid statements in parseMultiple 2023-07-21 21:07:55 +02:00
Simon Binder 03d3c837be
Add support for subqueries.
Closes #612.
2023-07-20 22:30:20 +02:00
Simon Binder 625eacf5f1
Add parseMultiple API to sqlparser (#2519) 2023-07-16 00:29:29 +02:00
Simon Binder c700b5b4be
Resolve CTEs for compound selects 2023-06-20 14:17:53 +02:00
Simon Binder e481f29138
Fix resolving table aliases (#2453) 2023-06-03 23:10:54 +02:00
Simon Binder 07fe555753
Report syntax error for WITH in trigger 2023-06-01 00:08:41 +02:00
Simon Binder 9154f60dfd
Improve resolving recursive CTEs 2023-05-30 13:53:03 +02:00
Simon Binder 18868221d9
Support doc comments for columns in drift files 2023-05-10 12:00:44 +02:00
Simon Binder 6bb2c3d2c5
Support named constructors for rows in drift file 2023-04-23 16:21:31 +02:00
Simon Binder db15b792ca
Fix column name inference in CTEs and subqueries 2023-04-20 16:43:27 +02:00
Simon Binder 611fd4c4e9
Fix crash with CTE on insert/update/delete 2023-04-20 15:37:51 +02:00
Simon Binder 11b563f9de
Add static analysis for the `IIF` function (#2392) 2023-04-18 12:42:51 +02:00
Simon Binder a988b38ec1
Improve error message for invalid column name 2023-04-16 18:37:34 +02:00
Simon Binder 99abaae2f1
Fix infinite loop in trigger parser 2023-04-14 11:47:15 +02:00
Simon Binder 834cc154bc
Infer types for `HAVING` clauses 2023-04-08 15:58:06 +02:00
Simon Binder bdac301866
Allow references to result column in group by too 2023-04-08 15:44:47 +02:00
Simon Binder 4e05067bd5
Don't assume nullable if no join syntax is known 2023-03-26 22:21:48 +02:00
Simon Binder c38e9cc6c0
Fix false-positive trigger syntax error (#2360) 2023-03-26 21:44:12 +02:00
Simon Binder ba86f1aa89
Use correct variable indexes around nested queries 2023-03-15 17:48:36 +01:00
Simon Binder 849f245f53
Warn about invalid custom foreign key constraint 2023-03-13 22:30:14 +01:00
Simon Binder cc16156c84
Merge branch 'postgres3' into develop 2023-02-25 13:16:33 +01:00
Simon Binder 1c662ebb1a
Analysis support for sqlite 3.41.0 2023-02-22 23:05:17 +01:00
Fabian Freund dc9a9e2db3 fix parsing of nested cte's 2023-02-15 10:18:26 +01:00
Simon Binder e2136236d9
Improve error messages for keyword functions 2023-02-08 10:52:48 +01:00
Simon Binder deb1b91d41
Escape postgres keywords in generated SQL 2023-02-05 14:28:19 +01:00
Simon Binder 7175b83d2b
Add missing space when formatting window functions 2023-01-20 18:14:37 +01:00
Simon Binder 4b83810a17
Fix `CAST` always being non-nullable 2023-01-06 21:14:24 +01:00
Simon Binder 1d7e656e30
Support cast to enum types 2023-01-06 16:53:04 +01:00
Simon Binder bc325dd31c
Support cast to drift-specific types 2023-01-06 15:10:03 +01:00
Simon Binder 20e6b0d5fe
Fix crash, support type converters in views 2023-01-06 14:27:15 +01:00
Simon Binder e562cb9d21
Support type converters in queries 2023-01-05 23:04:36 +01:00
Simon Binder 6e173e8c08
Don't require tokens for some AST classes 2022-12-30 20:46:18 +01:00
Simon Binder a98890b1c9
Prepare 2.4.0 release 2022-12-28 23:15:12 +01:00
Simon Binder f13fb4e218
Analyze existing row types for queries 2022-12-27 17:04:38 +01:00
Simon Binder 44cae65170
Order all result columns syntactically 2022-12-26 22:45:35 +01:00
Simon Binder 20aff8a9db
Begin with existing types for queries 2022-12-26 19:17:17 +01:00
Simon Binder 344d5611c6
Merge pull request #2220 from North101/develop
Validate enum default value in drift files
2022-12-20 00:11:47 +01:00
Simon Binder 1497d719b5
Extend check to all literal uses 2022-12-19 23:55:13 +01:00
Simon Binder e2265eb597
Add `DriftAny` type to wrap `ANY` in strit tables 2022-12-18 18:55:17 +01:00
Simon Binder b6cff50135
Parse custom constraints applied to columns 2022-12-11 00:06:45 +01:00
Simon Binder 387a21c580
Relax constraints on element order in drift files 2022-12-03 00:06:05 +01:00
Simon Binder 1a51dbf4d6
Static analysis support for custom functions 2022-12-02 23:34:42 +01:00
ValentinVignal 3cfa69c9d9
:sparkles Add ENUMNAME type 2022-12-01 00:40:13 +08:00
Simon Binder 292dd9946d
Port more tests over to new analyzer 2022-10-29 17:30:18 +02:00
Simon Binder 49470e8361
Support serializing fts5 tablesi n new analyzer 2022-10-29 14:39:28 +02:00
Simon Binder 81679b8ff1
Fix formatting some Dart placeholders 2022-10-23 18:13:40 +02:00
Simon Binder 3dddbaf467
Merge branch 'develop' into modular-generation 2022-10-10 23:45:48 +02:00
Brett Lindsay 6337d8e74f
Fix typo in error message for references (#2085) 2022-09-28 22:26:51 +02:00
Simon Binder 090a0053f1
Merge branch 'develop' into modular-generation 2022-09-16 20:03:17 +02:00