Skip to content

Commit 83c129f

Browse files
fix: remove substring pg_catalog prefix stripping logic to preserve funcname consistency
Co-Authored-By: Dan Lynch <[email protected]>
1 parent 6b07ba7 commit 83c129f

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

packages/transform/src/transformers/v13-to-v14.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -194,20 +194,6 @@ export class V13ToV14Transformer {
194194
}
195195
}
196196

197-
if (funcname.length >= 2) {
198-
const firstElement = funcname[0];
199-
const lastElement = funcname[funcname.length - 1];
200-
if (firstElement && typeof firstElement === 'object' && 'String' in firstElement &&
201-
lastElement && typeof lastElement === 'object' && 'String' in lastElement) {
202-
const prefix = firstElement.String.str || firstElement.String.sval;
203-
const funcName = lastElement.String.str || lastElement.String.sval;
204-
if (prefix === 'pg_catalog' && funcName === 'substring') {
205-
if (this.isStandardFunctionCallSyntax(node, context)) {
206-
funcname = funcname.slice(1);
207-
}
208-
}
209-
}
210-
}
211197
}
212198

213199
result.funcname = funcname;

0 commit comments

Comments
 (0)