在Drizzle JDBC中没有这样的专栏

时间:2012-11-12 06:42:39

标签: mysql-connector drizzle

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

1 个答案:

答案 0 :(得分:0)

(drizzle-jdbc作者)

您应该尝试使用drizzle-jdbc的最新快照版本,有一个错误,您无法使用< database>。< table>之前:https://github.com/krummas/DrizzleJDBC/issues/6

最新版本可在此处获取: https://repository.sonatype.org/service/local/artifact/maven/redirect?r=ossrh-snapshot&g=org.drizzle.jdbc&a=drizzle-jdbc&v=1.2-SNAPSHOT&e=jar

我很快就会构建1.2,其中包含此修复程序。