You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/06/05 19:00:06 UTC

[jira] [Commented] (IGNITE-5408) JDBC driver should not require Class.forName() call

    [ https://issues.apache.org/jira/browse/IGNITE-5408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16037405#comment-16037405 ] 

ASF GitHub Bot commented on IGNITE-5408:
----------------------------------------

GitHub user devozerov opened a pull request:

    https://github.com/apache/ignite/pull/2087

    IGNITE-5408

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gridgain/apache-ignite ignite-5408-1

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/ignite/pull/2087.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2087
    
----
commit ecacd40e3b66270e821d3ba22a08d38c03db9333
Author: devozerov <pp...@gmail.com>
Date:   2017-06-05T18:56:42Z

    Done for new driver.

commit 394e94992b0f913250c9723b86c9a98c13ae4aab
Author: devozerov <pp...@gmail.com>
Date:   2017-06-05T18:59:12Z

    Done for old driver.

----


> JDBC driver should not require Class.forName() call
> ---------------------------------------------------
>
>                 Key: IGNITE-5408
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5408
>             Project: Ignite
>          Issue Type: Task
>          Components: sql
>            Reporter: Vladimir Ozerov
>            Assignee: Alexander Paschenko
>             Fix For: 2.1
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)