This commit is contained in:
SPRINX0\prochazka
2024-12-04 14:15:13 +01:00
parent 9029fccad4
commit 6f4a49ea97
5 changed files with 33 additions and 45 deletions

View File

@@ -784,12 +784,17 @@ export class SqlDumper implements AlterProcessor {
}
}
declareVariable(name: string, type: string, defaultValueLiteral?: string) {}
executeCallable(func: CallableObjectInfo, argLiteralsByName: { [name: string]: string }) {
this.putCmd(
'^call %f(%,s)',
callableTemplate(func: CallableObjectInfo) {
this.put(
'^call %f(&>&n',
func,
(func.parameters || []).map(x => argLiteralsByName[x.parameterName])
);
this.putCollection(',&n', func.parameters || [], param => {
this.putRaw(param.parameterMode == 'IN' ? ':' + param.parameterName : param.parameterName);
});
this.put('&<&n');
this.endCommand();
}
}