Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Issues List »

[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3413)
Configuration.generateSchemaUpdateScript() uses getTableMetadata()
inconsistantly

Anupam M (JIRA)

2008-08-04


Author LoginPost Reply
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

   
_______________________________________________
hibernate-issues mailing list
hibernate-issues@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-issues
©2008 gg3721.com - Jax Systems, LLC, U.S.A.