Author: d.plentz
Date: 2007-08-15 10:39:43 -0400 (Wed, 15 Aug 2007)
New Revision: 12944
Modified:
core/trunk/core/src/main/java/org/hibernate/mapping/Table.java
Log:
[HHH-1396] Table.validateColumns fails on valid column
Modified: core/trunk/core/src/main/java/org/hibernate/mapping/Table.java
===================================================================
--- core/trunk/core/src/main/java/org/hibernate/mapping/Table.java 2007-08-15 03:31:18 UTC
(rev 12943)
+++ core/trunk/core/src/main/java/org/hibernate/mapping/Table.java 2007-08-15 14:39:43 UTC
(rev 12944)
@@ -254,7 +254,7 @@
throw new HibernateException( "Missing column: " + col.getName() + "
in " + Table.qualify( tableInfo.getCatalog(), tableInfo.getSchema(),
tableInfo.getName()));
}
else {
- final boolean typesMatch = col.getSqlType( dialect, mapping )
+ final boolean typesMatch = col.getSqlType( dialect, mapping ).toLowerCase()
.startsWith( columnInfo.getTypeName().toLowerCase() )
|| columnInfo.getTypeCode() == col.getSqlTypeCode( mapping );
if ( !typesMatch ) {
Show replies by date