From 60d4fe5001cdc31affe800c73f32f13ac274c8b8 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Wed, 17 Dec 2014 12:36:37 -0200 Subject: [PATCH] HHH-6670: H2Dialect should use "if exists" when dropping sequences --- .../src/main/java/org/hibernate/dialect/H2Dialect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/H2Dialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/H2Dialect.java index d5cec3633b..983718329d 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/H2Dialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/H2Dialect.java @@ -278,7 +278,7 @@ public class H2Dialect extends Dialect { @Override public String getDropSequenceString(String sequenceName) { - return "drop sequence " + sequenceName; + return "drop sequence if exists " + sequenceName; } @Override