From 68dded3aea860b19a0465638a33dbf84d043a4c7 Mon Sep 17 00:00:00 2001 From: Diego Plentz Date: Wed, 15 Aug 2007 14:39:43 +0000 Subject: [PATCH] [HHH-1396] Table.validateColumns fails on valid column git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@12944 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- core/src/main/java/org/hibernate/mapping/Table.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/hibernate/mapping/Table.java b/core/src/main/java/org/hibernate/mapping/Table.java index d3f877f879..ba45dc66a5 100644 --- a/core/src/main/java/org/hibernate/mapping/Table.java +++ b/core/src/main/java/org/hibernate/mapping/Table.java @@ -254,7 +254,7 @@ public class Table implements RelationalModel, Serializable { 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 ) {