Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
2.4.0
-
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)