[#8026] Wrong SQL generated when H2 OffsetDateTime values are inlined

This commit is contained in:
lukaseder 2018-11-06 12:51:57 +01:00
parent 48d7695a4a
commit 1f86fcd20a

View File

@ -2601,7 +2601,7 @@ public class DefaultBinding<T, U> implements Binding<T, U> {
.visit(K_AS).sql(' ').visit(K_TIMESTAMP_WITH_TIME_ZONE).sql(')');
// [#5895] HSQLDB derives the specific data type from the literal
if (ctx.family() == HSQLDB)
else if (ctx.family() == HSQLDB)
ctx.render().visit(K_TIMESTAMP).sql(" '").sql(escape(format(value), ctx.render())).sql('\'');