put updateParam back in

This commit is contained in:
Sven Klemm 2018-07-06 11:24:49 +02:00
parent 6143924ec6
commit d9db3d1402

View File

@ -64,6 +64,17 @@ export class SqlPart {
this.params = part.params;
}
updateParam(strValue, index) {
// handle optional parameters
if (strValue === '' && this.def.params[index].optional) {
this.params.splice(index, 1);
} else {
this.params[index] = strValue;
}
this.part.params = this.params;
}
render(innerExpr: string) {
return this.def.renderer(this, innerExpr);
}