From 036ea775dadcf812c1b4d66b1b899f4d0fde5fb3 Mon Sep 17 00:00:00 2001 From: Martin Simka Date: Fri, 27 Jul 2018 10:24:45 +0200 Subject: [PATCH] HHH-12863 SchemaUpdateTest should be skipped with Sybase --- .../org/hibernate/test/schemaupdate/SchemaUpdateTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/SchemaUpdateTest.java b/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/SchemaUpdateTest.java index f2c3804e63..8d3c544767 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/SchemaUpdateTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/SchemaUpdateTest.java @@ -40,6 +40,7 @@ import org.hibernate.boot.spi.MetadataImplementor; import org.hibernate.cfg.AvailableSettings; import org.hibernate.dialect.Dialect; import org.hibernate.dialect.SQLServerDialect; +import org.hibernate.dialect.SybaseDialect; import org.hibernate.engine.jdbc.env.spi.IdentifierHelper; import org.hibernate.engine.jdbc.env.spi.JdbcEnvironment; import org.hibernate.tool.hbm2ddl.SchemaExport; @@ -82,8 +83,9 @@ public class SchemaUpdateTest { @Before public void setUp() throws IOException { - if(SQLServerDialect.class.isAssignableFrom( Dialect.getDialect().getClass() )) { - // SQLServerDialect stores case-insensitive quoted identifiers in mixed case, + if(SQLServerDialect.class.isAssignableFrom( Dialect.getDialect().getClass() ) + || SybaseDialect.class.isAssignableFrom(Dialect.getDialect().getClass())) { + // SQLServerDialect and SybaseDialect stores case-insensitive quoted identifiers in mixed case, // so the checks at the end of this method won't work. skipTest = true; return;