We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c61c712 commit 661bed7Copy full SHA for 661bed7
packages/transform/src/transformers/v13-to-v14.ts
@@ -184,6 +184,10 @@ export class V13ToV14Transformer {
184
return false;
185
}
186
187
+ if (this.isInRangeFunctionContext(context)) {
188
+ return false;
189
+ }
190
+
191
return true;
192
193
@@ -264,6 +268,13 @@ export class V13ToV14Transformer {
264
268
);
265
269
266
270
271
+ private isInRangeFunctionContext(context: TransformerContext): boolean {
272
+ const path = context.path || [];
273
+ return path.some((node: any) =>
274
+ node && typeof node === 'object' && 'RangeFunction' in node
275
+ );
276
277
267
278
CallStmt(node: PG13.CallStmt, context: TransformerContext): any {
279
const result: any = { ...node };
280
0 commit comments