diff --git a/symmetric-db/src/main/java/org/jumpmind/db/platform/AbstractDatabasePlatform.java b/symmetric-db/src/main/java/org/jumpmind/db/platform/AbstractDatabasePlatform.java index 7b122de93e..c2032ee6ed 100644 --- a/symmetric-db/src/main/java/org/jumpmind/db/platform/AbstractDatabasePlatform.java +++ b/symmetric-db/src/main/java/org/jumpmind/db/platform/AbstractDatabasePlatform.java @@ -483,10 +483,10 @@ public String replaceSql(String sql, BinaryEncoding encoding, Table table, Row r newSql = newSql.replaceFirst(regex, "${curdate" + diff + "}"); } else if (type == Types.TIME) { newSql = newSql.replaceFirst(regex, - "ts {" + quote + FormatUtils.TIME_FORMATTER.format(date) + quote + "}"); + "{ts " + quote + FormatUtils.TIME_FORMATTER.format(date) + quote + "}"); } else { newSql = newSql.replaceFirst(regex, - "ts {" + quote + FormatUtils.TIMESTAMP_FORMATTER.format(date) + quote + "}"); + "{ts " + quote + FormatUtils.TIMESTAMP_FORMATTER.format(date) + quote + "}"); } } else if (column.isOfBinaryType()) { byte[] bytes = row.getBytes(name);