Commit d64a5fa
committed
Add comprehensive INSERT parser tests with round-trip verification
32 new tests covering MySQL and PostgreSQL INSERT/REPLACE:
- Basic VALUES, multi-row, column list, INSERT SELECT, INSERT SET
- ON DUPLICATE KEY UPDATE, IGNORE, LOW_PRIORITY, DELAYED, HIGH_PRIORITY
- REPLACE with various options
- PostgreSQL ON CONFLICT DO NOTHING/UPDATE, RETURNING, DEFAULT VALUES
- Bulk data-driven tests (24 MySQL + 16 PostgreSQL variants)
- Round-trip emitter tests (7 MySQL + 5 PostgreSQL)
Also fixes is_alias_start() to block TK_LPAREN which was incorrectly
treated as a valid implicit alias token.
Total test count: 268 (was 236, +32 new)1 parent 40cbcd2 commit d64a5fa
File tree
3 files changed
+422
-1
lines changed- include/sql_parser
- tests
3 files changed
+422
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
211 | 212 | | |
212 | 213 | | |
213 | 214 | | |
| |||
0 commit comments