现在我使用 Drizzledrizzle-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