db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thoralf Rickert (JIRA)" <j...@apache.org>
Subject [jira] Commented: (TORQUE-40) jdbc task fails on sybase database (schema is set)
Date Wed, 12 Jul 2006 09:37:30 GMT
    [ http://issues.apache.org/jira/browse/TORQUE-40?page=comments#action_12420568 ] 

Thoralf Rickert commented on TORQUE-40:
---------------------------------------

You have to set

torque.database.schema = dbo

in the properties to avoid this problem. 
Thanks to Andras Balogh.

I think, this bug is fixed.

> jdbc task fails on sybase database (schema is set)
> --------------------------------------------------
>
>          Key: TORQUE-40
>          URL: http://issues.apache.org/jira/browse/TORQUE-40
>      Project: Torque
>         Type: Bug

>   Components: Generator
>     Versions: 3.2.1
>  Environment: Sybase ASE 12.5
> jConnect for JDBC 2.0 v5.5 Build 25137 or v6.05 Build 25828
> Java Tds Server Classes v5.5 Build 25138 or v6.0 Build 25828
>     Reporter: Thoralf Rickert

>
> The Sybase JDBC driver doesn't expect a parameter for databaseSchema in
> DatabaseMetaData.getTables(String catalog, String schemaPattern, String tableNamePattern,
String[] types)
> DatabaseMetaData.getColumns(String catalog, String schemaPattern, String tableNamePattern,
String columnNamePattern)
> DatabaseMetaData.getPrimaryKeys(String catalog, String schema, String table)
> DatabaseMetaData.getImportedKeys(String catalog, String schema, String table)
> If it is set to something else than null the methods return nothing. So please add the
following fix (pseudo code):
> public void execute() throws BuildException
> {
>   ....
>   if (config("torque.database.type").equals("sybase")) 
>   {
>     dbSchema = null;
>   }
>   ...
> }

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message