removed the concat-operator "||" and replaced with "concat()" (#1489)

* removed the concat-operator "||" and replaced with "concat()"

* using || in postgres

* FIX: Assert-statement
This commit is contained in:
Roland Praml
2018-09-26 21:19:28 +12:00
committed by Rob Bygrave
parent efa86043bf
commit a020bb15a1
12 changed files with 49 additions and 71 deletions
@@ -92,14 +92,12 @@ class InPairsExpression extends AbstractExpression {
return;
}
String concat = request.getDbPlatformHandler().getConcatOperator();
String concatFormula = "(" + property0 + concat + "'" + separator + "'" + concat + property1;
if (suffix != null && !suffix.isEmpty()) {
concatFormula += concat + "'" + suffix + "'";
}
concatFormula += ")";
request.append(concatFormula);
StringBuilder sb = new StringBuilder();
request.getDbPlatformHandler().concat(property0, separator, property1, suffix);
request.append(request.getDbPlatformHandler().concat(property0, separator, property1, suffix));
request.appendInExpression(not, concatBindValues);
}