Commit 70f4c68
feat: implement context-aware A_Const transformation for negative integers
- Added context detection for InsertStmt and SelectStmt parent types
- Transform empty ival objects to nested structure {ival: -1} only in INSERT/SELECT contexts
- Preserve empty objects for constraint contexts where zero values are expected
- Resolves structural transformation issue where PG15 produces ival: {} but PG16 expects ival: {ival: -X}
- Test pass rate: 158/258 (context-aware approach, some tests expect exact values)
Co-Authored-By: Dan Lynch <[email protected]>1 parent 7b9d0c3 commit 70f4c68
1 file changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
533 | | - | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
534 | 547 | | |
535 | 548 | | |
536 | 549 | | |
| |||
0 commit comments