From 0dce3122d8c2bb8f13904352a348dedd835e6e66 Mon Sep 17 00:00:00 2001 From: Knut Wannheden Date: Tue, 30 Jul 2019 15:32:09 +0200 Subject: [PATCH] [jOOQ/jOOQ#5806] H2 has standard TIMESTAMP WITH TIME ZONE literals Removed H2 specific code for rendering of TIMESTAMP WITH TIME ZONE literals, as the SQL standard notation now also works. --- jOOQ/src/main/java/org/jooq/impl/DefaultBinding.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/jOOQ/src/main/java/org/jooq/impl/DefaultBinding.java b/jOOQ/src/main/java/org/jooq/impl/DefaultBinding.java index 47fc0929b1..8a7caffd68 100644 --- a/jOOQ/src/main/java/org/jooq/impl/DefaultBinding.java +++ b/jOOQ/src/main/java/org/jooq/impl/DefaultBinding.java @@ -2697,12 +2697,6 @@ public class DefaultBinding implements Binding { SQLDialect family = ctx.family(); switch (family) { - // [#5806] H2 doesn't support TIMESTAMP WITH TIME ZONE literals, see - case H2: - ctx.render().visit(K_CAST).sql("('").sql(escape(format(value, family), ctx.render())).sql("' ") - .visit(K_AS).sql(' ').visit(K_TIMESTAMP_WITH_TIME_ZONE).sql(')'); - break; - // [#5895] HSQLDB derives the specific data type from the literal case HSQLDB: ctx.render().visit(K_TIMESTAMP).sql(" '").sql(escape(format(value, family), ctx.render())).sql('\'');