Skip to content

Commit

Permalink
use default schema and catalog if they are set to null.
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Jan 4, 2013
1 parent eb5fa08 commit db38077
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -205,6 +205,8 @@ public Database readDatabase(String catalog, String schema, String[] tableTypes)
public Table readTableFromDatabase(String catalogName, String schemaName, String tableName) {
String originalFullyQualifiedName = Table.getFullyQualifiedTableName(catalogName,
schemaName, tableName);
catalogName = catalogName == null ? getDefaultCatalog() : catalogName;
schemaName = schemaName == null ? getDefaultSchema() : schemaName;
Table table = ddlReader.readTable(catalogName, schemaName, tableName);
if (table == null && metadataIgnoreCase) {
if (isStoresUpperCaseIdentifiers()) {
Expand Down

0 comments on commit db38077

Please sign in to comment.