mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-13 06:42:57 +00:00
#1489 - removed the concat-operator "||" and replaced with "concat()"
This commit is contained in:
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('\'');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user