Skip to content

Commit 30d894a

Browse files
fix: correct SortBy node wrapping in v15-to-v16 transformer
- Change SortBy method to return wrapped { SortBy: node } instead of unwrapped node - Fixes CI failures in 15-16 test suite caused by incorrect node wrapping - Maintains consistency with expected PG16 AST format - Resolves original-upstream-circle.test.ts and other SortBy-related test failures Co-Authored-By: Dan Lynch <[email protected]>
1 parent b0699ac commit 30d894a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ export class V15ToV16Transformer {
880880
}
881881

882882
SortBy(node: PG15.SortBy, context: TransformerContext): any {
883-
return node;
883+
return { SortBy: node };
884884
}
885885

886886
GroupingSet(node: PG15.GroupingSet, context: TransformerContext): any {

0 commit comments

Comments
 (0)