Fix support for binding names for function definitions with comas

This commit is contained in:
Oleg Zhurakousky
2020-09-22 16:42:16 +02:00
parent 3364771da5
commit 66eaef460d

View File

@@ -112,7 +112,7 @@ class BindableFunctionProxyFactory extends BindableProxyFactory {
}
private String buildInputNameForIndex(int index) {
return new StringBuilder(this.functionDefinition.replace("|", ""))
return new StringBuilder(this.functionDefinition.replace(",", "|").replace("|", ""))
.append(FunctionConstants.DELIMITER)
.append(FunctionConstants.DEFAULT_INPUT_SUFFIX)
.append(FunctionConstants.DELIMITER)
@@ -121,7 +121,7 @@ class BindableFunctionProxyFactory extends BindableProxyFactory {
}
private String buildOutputNameForIndex(int index) {
return new StringBuilder(this.functionDefinition.replace("|", ""))
return new StringBuilder(this.functionDefinition.replace(",", "|").replace("|", ""))
.append(FunctionConstants.DELIMITER)
.append(FunctionConstants.DEFAULT_OUTPUT_SUFFIX)
.append(FunctionConstants.DELIMITER)