From 721b66c6d3bcad9606981e073114540432349d03 Mon Sep 17 00:00:00 2001 From: Mark Rotteveel Date: Sat, 3 Dec 2022 13:15:12 +0100 Subject: [PATCH] HHH-15801 IdentifierGeneratorHelper should compare column names case insensitively --- .../java/org/hibernate/id/IdentifierGeneratorHelper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/id/IdentifierGeneratorHelper.java b/hibernate-core/src/main/java/org/hibernate/id/IdentifierGeneratorHelper.java index 25791e8d98..448c813fb7 100644 --- a/hibernate-core/src/main/java/org/hibernate/id/IdentifierGeneratorHelper.java +++ b/hibernate-core/src/main/java/org/hibernate/id/IdentifierGeneratorHelper.java @@ -97,14 +97,14 @@ public final class IdentifierGeneratorHelper { } } catch (SQLException e) { - LOG.debugf( "Could not determine column index from JDBC metadatda", e ); + LOG.debugf( "Could not determine column index from JDBC metadata", e ); } return 1; } private static boolean equal(String keyColumnName, String alias, Dialect dialect) { - return alias.equals( keyColumnName ) - || alias.equals( StringHelper.unquote( keyColumnName, dialect ) ); + return alias.equalsIgnoreCase( keyColumnName ) + || alias.equalsIgnoreCase( StringHelper.unquote( keyColumnName, dialect ) ); } public static IntegralDataTypeHolder getIntegralDataTypeHolder(Class integralType) {