nutz dao 在我的action层自定义的sql查询是没问题页面出来数了,但是下边这样
cri.where().andGT("chain_price",0);
list=dao.query(WccWarningView.class,cri);
这种生成dao自己的sql就报上边的错了。
java.sql.SQLException: [192.168.0.234:5050](GBA-02AD-0005)Failed to query in gnode:
DETAIL: You have an error in your SQL syntax; check the manual that corresponds to your GBase server version for the right syntax to use near '?) LIMIT 0 ; commit' at line 1
SQL: CREATE TABLE `gctmpdb`._tmp_3925911744_560791_t18406_4_1503404897_s AS SELECT /*192.168.0.234_560791_9_2017-08-31_14:36:14*/ /*+ TID('1132518') */ `w_warning`.`province_name` AS `c15`, `w_warning`.`cat_name` AS `c16`, `w_warning`.`picture` AS `c17`, `w_warning`.`
at com.gbase.jdbc.SQLError.createSQLException(SQLError.java:946)
at com.gbase.jdbc.GbaseIO.checkErrorPacket(GbaseIO.java:2870)
at com.gbase.jdbc.GbaseIO.sendCommand(GbaseIO.java:1573)
at com.gbase.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:1160)
at com.gbase.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:685)
at com.gbase.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1262)
at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_executeQuery(FilterChainImpl.java:2830)
at com.alibaba.druid.filter.FilterEventAdapter.preparedStatement_executeQuery(FilterEventAdapter.java:465)
at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_executeQuery(FilterChainImpl.java:2827)
at com.alibaba.druid.proxy.jdbc.PreparedStatementProxyImpl.executeQuery(PreparedStatementProxyImpl.java:182)
at com.alibaba.druid.pool.DruidPooledPreparedStatement.executeQuery(DruidPooledPreparedStatement.java:228)
at org.nutz.dao.impl.sql.run.NutDaoExecutor._runSelect(NutDaoExecutor.java:272)
at org.nutz.dao.impl.sql.run.NutDaoExecutor.exec(NutDaoExecutor.java:53)
at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:66)
at org.nutz.dao.impl.interceptor.DaoLogInterceptor.filter(DaoLogInterceptor.java:22)
at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:64)
at org.nutz.dao.DaoInterceptorChain.invoke(DaoInterceptorChain.java:139)
at org.nutz.dao.impl.sql.run.NutDaoRunner.runCallback(NutDaoRunner.java:158)
at org.nutz.dao.impl.sql.run.NutDaoRunner._runWithoutTransaction(NutDaoRunner.java:125)
at org.nutz.dao.impl.sql.run.NutDaoRunner._run(NutDaoRunner.java:92)
at org.nutz.dao.impl.sql.run.NutDaoRunner.run(NutDaoRunner.java:81)
at org.nutz.dao.impl.DaoSupport.run(DaoSupport.java:240)
at org.nutz.dao.impl.DaoSupport._exec(DaoSupport.java:252)
at org.nutz.dao.impl.NutDao.query(NutDao.java:483)
at org.nutz.dao.impl.NutDao.query(NutDao.java:488)