HHH-10198 - NPE in InformationExtractorJdbcDatabaseMetaDataImpl
This commit is contained in:
parent
05c6d560b2
commit
af4243bdb0
|
@ -124,10 +124,13 @@ public class InformationExtractorJdbcDatabaseMetaDataImpl implements Information
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( resultSet.next() ) {
|
if ( resultSet.next() ) {
|
||||||
|
final String catalogName = catalog == null ? "" : catalog.getCanonicalName();
|
||||||
|
final String schemaName = schema == null ? "" : schema.getCanonicalName();
|
||||||
|
|
||||||
log.debugf(
|
log.debugf(
|
||||||
"Multiple schemas found with that name [%s.%s]",
|
"Multiple schemas found with that name [%s.%s]",
|
||||||
catalog.getCanonicalName(),
|
catalogName,
|
||||||
schema.getCanonicalName()
|
schemaName
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -344,12 +347,14 @@ public class InformationExtractorJdbcDatabaseMetaDataImpl implements Information
|
||||||
|
|
||||||
if ( resultSet.next() ) {
|
if ( resultSet.next() ) {
|
||||||
log.multipleTablesFound( tableName.render() );
|
log.multipleTablesFound( tableName.render() );
|
||||||
|
final String catalogName = catalog == null ? "" : catalog.render();
|
||||||
|
final String schemaName = schema == null ? "" : schema.render();
|
||||||
throw new SchemaExtractionException(
|
throw new SchemaExtractionException(
|
||||||
String.format(
|
String.format(
|
||||||
Locale.ENGLISH,
|
Locale.ENGLISH,
|
||||||
"More than one table found in namespace (%s, %s) : %s",
|
"More than one table found in namespace (%s, %s) : %s",
|
||||||
catalog.render(),
|
catalogName,
|
||||||
schema.render(),
|
schemaName,
|
||||||
tableName.render()
|
tableName.render()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue