tsql call

This commit is contained in:
SPRINX0\prochazka
2024-12-04 13:27:20 +01:00
parent 0fde8c49a7
commit edf3a072c5
4 changed files with 33 additions and 15 deletions

View File

@@ -785,7 +785,11 @@ export class SqlDumper implements AlterProcessor {
}
declareVariable(name: string, type: string, defaultValueLiteral?: string) {}
executeCallable(func: CallableObjectInfo, argLiterals: string[]) {
this.putCmd('^call %f(%,s)', func, argLiterals);
executeCallable(func: CallableObjectInfo, argLiteralsByName: { [name: string]: string }) {
this.putCmd(
'^call %f(%,s)',
func,
(func.parameters || []).map(x => argLiteralsByName[x.parameterName])
);
}
}