Configuration.generateSchemaUpdateScript() uses getTableMetadata() inconsistantly
---------------------------------------------------------------------------------
Key: HHH-3413
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3413
Project: Hibernate3
Issue Type: Bug
Affects Versions: 3.3.0.CR2
Reporter: Erik Voorbraak
Priority: Minor
In org.hibernate.cfg.Configuration.generateSchemaUpdateScript(), there are two calls to
getTableMetadata();
TableMetadata tableInfo = databaseMetadata.getTableMetadata(
table.getName(),
( table.getSchema() == null ) ? defaultSchema : table.getSchema(),
( table.getCatalog() == null ) ? defaultCatalog : table.getCatalog(),
table.isQuoted()
and
TableMetadata tableInfo = databaseMetadata.getTableMetadata(
table.getName(),
table.getSchema(),
table.getCatalog(),
table.isQuoted()
Shouldn't the second call use the fallback to the default schema and catalog as well?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira