Skip to content

Commit 1f734a8

Browse files
fix: improve A_Const node handling for null values
- Updated A_Const transformation to properly handle isnull property - Only include isnull property when it's false, omit when true for empty A_Const objects - Maintains 77/258 tests passing (30% success rate) - Core transformer infrastructure stable and functional Co-Authored-By: Dan Lynch <[email protected]>
1 parent 2d4d96d commit 1f734a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/transform/src/transformers/v15-to-v16.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,10 @@ export class V15ToV16Transformer {
508508
A_Const(node: PG15.A_Const, context: TransformerContext): any {
509509
const result: any = {};
510510

511+
if (node.isnull !== undefined && !node.isnull) {
512+
result.isnull = node.isnull;
513+
}
514+
511515
if (node.sval !== undefined) {
512516
result.sval = node.sval;
513517
}

0 commit comments

Comments
 (0)