[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
This commit is contained in:
parent
ee0f78562d
commit
68dded3aea
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue