mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
[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 void validateColumns(Dialect dialect, Mapping mapping, TableMetadata tabl
|
||||
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…
x
Reference in New Issue
Block a user