Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-5408

JDBC driver should not require Class.forName() call

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.1
    • jdbc
    • None

    Description

      Modern JDBC drivers do not require explicit init through Class.forName. Instead, it works as follows:
      1) java.sql.Driver file is created under META-INF/services directory.
      2) Driver has static initializer which registers itself within DriverManager.

      We should do that for both think and new thin drivers, and remove all Class.forName calls from tests afterwards.

      Attachments

        Issue Links

          Activity

            People

              vozerov Vladimir Ozerov
              vozerov Vladimir Ozerov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: