Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 45527 invoked from network); 26 Nov 2006 18:25:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Nov 2006 18:25:39 -0000 Received: (qmail 87558 invoked by uid 500); 26 Nov 2006 18:25:48 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 87542 invoked by uid 500); 26 Nov 2006 18:25:48 -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 87531 invoked by uid 99); 26 Nov 2006 18:25:48 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Nov 2006 10:25:48 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Nov 2006 10:25:38 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D09E3714346 for ; Sun, 26 Nov 2006 10:25:18 -0800 (PST) Message-ID: <3052167.1164565518851.JavaMail.jira@brutus> Date: Sun, 26 Nov 2006 10:25:18 -0800 (PST) From: "Thomas Vandahl (JIRA)" To: torque-dev@db.apache.org Subject: [jira] Closed: (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 [ http://issues.apache.org/jira/browse/TORQUE-41?page=all ] Thomas Vandahl closed TORQUE-41. -------------------------------- > 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 > Assigned To: Thomas Fischer > Fix For: 3.3 > > > 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