现在我使用Drizzle drizzle-jdbc-1.1
代替mysql-connector-java-5.1.12
。但是当从我的表中读取数据时,它会显示这样的错误。但是,只有在使用drizzle-jdbc
并且查询成功使用mysql-jdbc
时才会出现此问题。为什么呢?
SQLException information
Error msg: No such column: sampletable.DataUpdated
SQLSTATE: null
Error code: 0
java.sql.SQLException: No such column: sampletable.DataUpdated
at org.drizzle.jdbc.internal.SQLExceptionMapper.getSQLException(SQLExceptionMapper.java:116)
at org.drizzle.jdbc.DrizzleResultSet.getValueObject(DrizzleResultSet.java:145)
at org.drizzle.jdbc.DrizzleResultSet.getLong(DrizzleResultSet.java:164)
at com.samples.service.TestService.fetchData(TestService.java:327)
at com.samples.views.TestDataView$3.run(TestDataView.java:401)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.drizzle.jdbc.internal.common.queryresults.NoSuchColumnException: No such column: sampletable.DataUpdated
at org.drizzle.jdbc.internal.common.queryresults.DrizzleQueryResult.getValueObject(DrizzleQueryResult.java:97)
at org.drizzle.jdbc.DrizzleResultSet.getValueObject(DrizzleResultSet.java:143)
... 4 more
答案 0 :(得分:0)
(drizzle-jdbc作者)
您应该尝试使用drizzle-jdbc的最新快照版本,有一个错误,您无法使用< database>。< table>之前:https://github.com/krummas/DrizzleJDBC/issues/6
我很快就会构建1.2,其中包含此修复程序。