Author: d.plentz
Date: 2007-09-29 11:07:11 -0400 (Sat, 29 Sep 2007)
New Revision: 14033
Modified:
core/branches/Branch_3_2/src/org/hibernate/mapping/Table.java
Log:
[HHH-1396] Table.validateColumns fails on valid column
Modified: core/branches/Branch_3_2/src/org/hibernate/mapping/Table.java
===================================================================
--- core/branches/Branch_3_2/src/org/hibernate/mapping/Table.java 2007-09-28 03:18:36 UTC
(rev 14032)
+++ core/branches/Branch_3_2/src/org/hibernate/mapping/Table.java 2007-09-29 15:07:11 UTC
(rev 14033)
@@ -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 ) {