HHH-10820 - Fix InformationExtractorJdbcDatabaseMetaDataImpl quoted table names

This commit is contained in:
Andrea Boriero 2016-06-10 13:31:36 +01:00
parent c713c56f6c
commit 3d74c45e1d
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ public class InformationExtractorJdbcDatabaseMetaDataImpl implements Information
boolean found = false;
TableInformation tableInformation = null;
while ( resultSet.next() ) {
if ( tableName.equals( identifierHelper().toIdentifier( resultSet.getString( "TABLE_NAME" ) ) ) ) {
if ( tableName.equals( identifierHelper().toIdentifier( resultSet.getString( "TABLE_NAME" ), tableName.isQuoted() ) ) ) {
if ( found ) {
log.multipleTablesFound( tableName.render() );
final String catalogName = catalog == null ? "" : catalog.render();