From torque-dev-return-6967-apmail-db-torque-dev-archive=db.apache.org@db.apache.org Sat Jul 15 07:42:18 2006 Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 43244 invoked from network); 15 Jul 2006 07:42:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Jul 2006 07:42:18 -0000 Received: (qmail 27513 invoked by uid 500); 15 Jul 2006 07:42:18 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 27491 invoked by uid 500); 15 Jul 2006 07:42: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 27480 invoked by uid 99); 15 Jul 2006 07:42: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:42:17 -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:42:17 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BD4C7410020 for ; Sat, 15 Jul 2006 07:40:14 +0000 (GMT) Message-ID: <30809747.1152949214772.JavaMail.jira@brutus> Date: Sat, 15 Jul 2006 00:40:14 -0700 (PDT) From: "Thomas Fischer (JIRA)" To: torque-dev@db.apache.org Subject: [jira] Updated: (TORQUE-41) JDBC Task: Getting Foreign Keys from Views in Sybase throws SybSQLException In-Reply-To: <27471513.1152695130917.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-41?page=all ] Thomas Fischer updated TORQUE-41: --------------------------------- Affects Version/s: 3.2 (was: 3.2.1) > JDBC Task: Getting Foreign Keys from Views in Sybase throws SybSQLException > --------------------------------------------------------------------------- > > Key: TORQUE-41 > URL: http://issues.apache.org/jira/browse/TORQUE-41 > 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 > > Assuming TORQUE-40 is resolved - the JDBC task would throw an exception if it is examining a sybase database with views. > com.sybase.jdbc3.jdbc.SybSQLException: No such object or user exists in the database. > ... > at org.apache.torque.task.TorqueJDBCTransformTask.getForeignKeys(TorqueJDBCTransformTask.java:488) > ... > This happens because the JDBC driver in Sybase seems to not support foreign keys in views. A workaround for this would be to catch exceptions in org.apache.torque.task.TorqueJDBCTransformTask#getForeignKeys() and return an empty list (or collection). With this fix it would be possible to generate a schema.xml -- 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