Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-690

DataSourceExtensionPoint : Validation Query

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.4.2, 2.5
    • 2.4
    • None
    • None

      Validation query is limited for Oracle, we have to use the driver oracle.jdbc.driver.OracleDriver but it also exists the driver oracle.jdbc.OracleDriver.

      Is it possible to modify _getValidationQuery(driver) method like this or something else ?

      private String _getValidationQuery(String driver)
      {
          if (driver.endsWith("OracleDriver"))
          {
              return "SELECT 1 FROM DUAL";
          }
          else if ("org.apache.derby.jdbc.EmbeddedDriver".equals(driver))
          {
              return "SELECT 1 FROM SYS.SYSTABLES";
          }
          else
          {
              return "SELECT 1";
          }
      }
      

            Unassigned Unassigned
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: