Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1598问题遗漏的修复 #1629

Closed
kajelas opened this issue Mar 9, 2017 · 1 comment
Closed

#1598问题遗漏的修复 #1629

kajelas opened this issue Mar 9, 2017 · 1 comment
Labels
Milestone

Comments

@kajelas
Copy link

kajelas commented Mar 9, 2017

请参考#1598
bug fix漏了ValidConnectionChecker的初始化:

private void initValidConnectionChecker() {
     String realDriverClassName = driver.getClass().getName();
        if (realDriverClassName.equals(JdbcConstants.MYSQL_DRIVER) //
            || realDriverClassName.equals(JdbcConstants.MYSQL_DRIVER_6)) {
            this.validConnectionChecker = new MySqlValidConnectionChecker();
        } else if (realDriverClassName.equals(JdbcConstants.ORACLE_DRIVER
                  || realDriverClassName.equals(JdbcConstants.ORACLE_DRIVER2)) { //遗漏了这个地方的初始化
            this.validConnectionChecker = new OracleValidConnectionChecker();
        } else if (realDriverClassName.equals(JdbcConstants.SQL_SERVER_DRIVER)
                   || realDriverClassName.equals(JdbcConstants.SQL_SERVER_DRIVER_SQLJDBC4)
                   || realDriverClassName.equals(JdbcConstants.SQL_SERVER_DRIVER_JTDS)) {
            this.validConnectionChecker = new MSSQLValidConnectionChecker();
        } else if (realDriverClassName.equals(JdbcConstants.POSTGRESQL_DRIVER)) {
            this.validConnectionChecker = new PGValidConnectionChecker();
        }
    }
@wenshao wenshao added the Bug label Mar 11, 2017
@wenshao wenshao added this to the 1.0.29 milestone Mar 11, 2017
@lizongbo
Copy link
Collaborator

已经修复,请使用最新版验证

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants