HHH-15801 IdentifierGeneratorHelper should compare column names case insensitively
This commit is contained in:
parent
f91905c34a
commit
721b66c6d3
|
@ -97,14 +97,14 @@ public final class IdentifierGeneratorHelper {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (SQLException e) {
|
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;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean equal(String keyColumnName, String alias, Dialect dialect) {
|
private static boolean equal(String keyColumnName, String alias, Dialect dialect) {
|
||||||
return alias.equals( keyColumnName )
|
return alias.equalsIgnoreCase( keyColumnName )
|
||||||
|| alias.equals( StringHelper.unquote( keyColumnName, dialect ) );
|
|| alias.equalsIgnoreCase( StringHelper.unquote( keyColumnName, dialect ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
public static IntegralDataTypeHolder getIntegralDataTypeHolder(Class<?> integralType) {
|
public static IntegralDataTypeHolder getIntegralDataTypeHolder(Class<?> integralType) {
|
||||||
|
|
Loading…
Reference in New Issue