Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 42646 invoked from network); 15 Jul 2006 07:38:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Jul 2006 07:38:19 -0000 Received: (qmail 25446 invoked by uid 500); 15 Jul 2006 07:38:19 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 25333 invoked by uid 500); 15 Jul 2006 07:38:18 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 25322 invoked by uid 99); 15 Jul 2006 07:38:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Jul 2006 00:38:18 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Jul 2006 00:38:18 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A01F9410020 for ; Sat, 15 Jul 2006 07:36:15 +0000 (GMT) Message-ID: <23990653.1152948975653.JavaMail.jira@brutus> Date: Sat, 15 Jul 2006 00:36:15 -0700 (PDT) From: "Thomas Fischer (JIRA)" To: torque-dev@db.apache.org Subject: [jira] Commented: (TORQUE-40) jdbc task fails on sybase database (schema is set) In-Reply-To: <595109.1152694229991.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/TORQUE-40?page=comments#action_12421295 ] Thomas Fischer commented on TORQUE-40: -------------------------------------- To be more unspecific, the schema name has to be the same as the name of the database user. > jdbc task fails on sybase database (schema is set) > -------------------------------------------------- > > Key: TORQUE-40 > URL: http://issues.apache.org/jira/browse/TORQUE-40 > Project: Torque > Issue Type: Bug > Components: Generator > Affects Versions: 3.2 > 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