Commit adec7cf
committed
test: add failing test for EXCLUDE constraint WHERE clause being dropped
The deparser drops the WHERE clause from EXCLUDE USING ... WHERE (...) constraints.
The parser correctly preserves where_clause in the AST, but the CONSTR_EXCLUSION
handler in the deparser never outputs it.
This causes partial exclusion constraints to lose their predicate during
parse -> deparse cycles, which silently changes the constraint semantics.1 parent ab3eacd commit adec7cf
3 files changed
Lines changed: 14 additions & 2 deletions
File tree
- __fixtures__
- generated
- kitchen-sink/misc
- packages/deparser/__tests__/kitchen-sink
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21327 | 21327 | | |
21328 | 21328 | | |
21329 | 21329 | | |
| 21330 | + | |
21330 | 21331 | | |
21331 | 21332 | | |
21332 | 21333 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
0 commit comments