Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4139082

Add two methods to return the version numbers of the underlying database.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.0
    • core-libs
    • None
    • merlin
    • x86
    • solaris_2.4

              Recently, as part of the JDBC 2.0 public review, we've been
      asked to add two new methods to the DatabaseMetaData interface. This
      is not a critical feature, but it would be nice to add it, and
      respond to this developers request.

      The proposed new methods are:

      interface DataBaseMetaData {

      int getDatabaseProductMajorVersion() throws SQLException;
      int getDatabaseProductMinorVersion() throws SQLException;

      }

      The two methods simply return the version numbers of the underlying
      database. The new methods are similar to two existing methods

      getDriverMinorVersion()
      getDriverMajorVersion()

      so they fit nicely into the API. I believe these methods were
      simply forgotten for JDBC 1.0 and that that is why they are not
      there. This change will not raise any objections with the JDBC
      vendor community.

            jellissunw Jon Ellis (Inactive)
            swhitesunw Seth White (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: