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

jdbc task fails on sybase database (schema is set)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 3.2
    • 3.2
    • 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

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

      ...
      }

      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: