HHH-10820 - Fix InformationExtractorJdbcDatabaseMetaDataImpl quoted table names

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

View File

@ -364,7 +364,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();