db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jim vester (JIRA)" <j...@apache.org>
Subject [jira] Created: (DDLUTILS-96) Db2 database cannot extract table definition from database with schema
Date Mon, 17 Apr 2006 18:03:17 GMT
Db2 database cannot extract table definition from database with schema
----------------------------------------------------------------------

         Key: DDLUTILS-96
         URL: http://issues.apache.org/jira/browse/DDLUTILS-96
     Project: DdlUtils
        Type: Bug

  Components: Core  
 Environment: DB2 database with schema and userid does not match schema name
    Reporter: jim vester
 Assigned to: Thomas Dudziak 


Using a db2 database with a schema a stack trace occurs when trying to extract the ddl from
the datbase.

the stack trace point to 
org.apache.ddlutils.platform.JdbcModelReader.determineAutoIncrementFromResultSetMetaData(...)
 ...
         query.append (" FROM ");
         if (getPlatform().isDelimitedIdentifierModeOn())
         {
             query.append(getPlatformInfo().getDelimiterToken());
         }
         query.append(table.getName());


the schema is missing in the generated sql.

 I hacked it by checking if a schemaName existed in the table
object and appending the table.getSchema() [?] +"." then the table name.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message