Uploaded image for project: 'Torque'
  1. Torque
  2. TORQUE-41

JDBC Task: Getting Foreign Keys from Views in Sybase throws SybSQLException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2
    • 3.3
    • Generator
    • None
    • 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

    Description

      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

      Attachments

        Activity

          People

            tfischer Thomas Fox
            trickert Thoralf Rickert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: