From 9ddab37748de6c313e93ac98e7d720bf0c880c34 Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Wed, 13 Nov 2019 09:08:12 +0000 Subject: [PATCH] HHH-13727 H2 database with DATABASE_TO_UPPER=false throws org.h2.jdbc.JdbcSQLSyntaxErrorException: Table sequences not found --- .../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 b16be8648b..06468ef8ee 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/H2Dialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/H2Dialect.java @@ -102,7 +102,7 @@ public class H2Dialect extends Dialect { if ( buildId >= 32 ) { this.sequenceInformationExtractor = SequenceInformationExtractorH2DatabaseImpl.INSTANCE; - this.querySequenceString = "select * from INFORMATION_SCHEMA.sequences"; + this.querySequenceString = "select * from INFORMATION_SCHEMA.SEQUENCES"; } else { this.sequenceInformationExtractor = SequenceInformationExtractorNoOpImpl.INSTANCE;