#2390 - Tidy generated SQL removing excess whitespace after id = ? predicate

This commit is contained in:
Rob Bygrave committed 2021-09-23 16:42:45 +12:00
1 parent 0a4c26965c
commit 3244314424
5 files changed
+7 -9

No files matched your search

@@ -36,7 +36,7 @@ public final class IdBinderSimple implements IdBinder {
this.idProperty = idProperty;
this.scalarType = idProperty.scalarType();
this.expectedType = idProperty.type();
bindIdSql = InternString.intern(idProperty.dbColumn() + " = ? ");
bindIdSql = InternString.intern(idProperty.dbColumn() + " = ?");
this.multiValueBind = multiValueBind;
}
@@ -651,7 +651,7 @@ final class CQueryBuilder {
// strip the table alias for use in update statement
idSql = idSql.replace("t0.", "");
}
sb.append(idSql).append(" ");
sb.append(idSql);
hasWhere = true;
}
}