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

This commit is contained in:
Rob Bygrave committed 2018-09-26 21:23:14 +12:00
1 parent a020bb15a1
commit 0036473971
3 files changed
+5 -11

No files matched your search

@@ -92,11 +92,6 @@ class InPairsExpression extends AbstractExpression {
return;
}
StringBuilder sb = new StringBuilder();
request.getDbPlatformHandler().concat(property0, separator, property1, suffix);
request.append(request.getDbPlatformHandler().concat(property0, separator, property1, suffix));
request.appendInExpression(not, concatBindValues);
}
@@ -49,8 +49,7 @@ abstract class BaseDbExpression implements DbExpressionHandler {
@Override
public String concat(String property0, String separator, String property1, String suffix) {
StringBuilder sb = new StringBuilder();
sb.append("CONCAT(").append(property0).append(",'").append(separator).append("',").append(property1);
sb.append("concat(").append(property0).append(",'").append(separator).append("',").append(property1);
if (suffix != null && !suffix.isEmpty()) {
sb.append(",'").append(suffix).append('\'');
}