Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-705

QueryRunner的update方法执行/**/时会报错

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.6.1, 3.0.3
    • metadata
    • None
    • jdk1.8
      mariadb connector 2.4.1
      mysql 5.1.71 或者 mariadb 10.3.12

    Description

      用mysql的connector/j 不会报错
      用mariadb的connector/j 会报错
      [ERROR] 2019-05-30 09:36:02,452 com.lenovo.leapedge.utils.UpdateDatabasesByScript - sql执行错误
      java.sql.SQLException: Parameter metadata not available for these statement Query: /**/ Parameters: []
      at org.apache.commons.dbutils.AbstractQueryRunner.rethrow(AbstractQueryRunner.java:392)
      at org.apache.commons.dbutils.QueryRunner.update(QueryRunner.java:491)
      at org.apache.commons.dbutils.QueryRunner.update(QueryRunner.java:377)
      at com.lenovo.leapedge.utils.UpdateDatabasesByScript.runTableScripts(UpdateDatabasesByScript.java:387)
      at com.lenovo.leapedge.utils.UpdateDatabasesByScript.doUpdate(UpdateDatabasesByScript.java:219)
      at com.lenovo.leapedge.EdgeMqttRunner.initDatabases(EdgeMqttRunner.java:93)
      at com.lenovo.leapedge.EdgeMqttRunner.run(EdgeMqttRunner.java:63)
      at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:797)
      at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:781)
      at org.springframework.boot.SpringApplication.run(SpringApplication.java:335)
      at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
      at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
      at com.lenovo.leapedge.Application.main(Application.java:24)

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            13121723599@163.com Xu Shilin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.