日期:2014-05-17 浏览次数:20906 次
String querySQL = "from User o";
Query query = getSession().createQuery(querySQL);
query.setFirstResult(0);
query.setMaxResults(10);
query.list();
WARN (org.hibernate.util.JDBCExceptionReporter:100) - SQL Error: -4700, SQLState: 56038
ERROR (org.hibernate.util.JDBCExceptionReporter:101) - DB2 SQL Error: SQLCODE=-4700, SQLSTATE=56038, SQLERRMC=null, DRIVER=3.64.106
WARN (org.hibernate.util.JDBCExceptionReporter:100) - SQL Error: -516, SQLState: 26501
ERROR (org.hibernate.util.JDBCExceptionReporter:101) - DB2 SQL Error: SQLCODE=-516, SQLSTATE=26501, SQLERRMC=null, DRIVER=3.64.106
WARN (org.hibernate.util.JDBCExceptionReporter:100) - SQL Error: -514, SQLState: 26501
ERROR (org.hibernate.util.JDBCExceptionReporter:101) - DB2 SQL Error: SQLCODE=-514, SQLSTATE=26501, SQLERRMC=SQL_CURLH200C1, DRIVER=3.64.106
ERROR (com.dao.parameter.impl.ParameterDaoImpl:61) - dao error:
org.hibernate.exception.GenericJDBCException: could not execute query
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.loader.Loader.doList(Loader.java:2235)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2129)
at org.hibernate.loader.Loader.list(Loader.java:2124)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:363)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1149)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
select * from ( select rownumber() over() as rownumber_, user.code from User user) as temp_ where rownumber_ <= 10
[错误] 脚本行:1-2 ---------------------------------------
ATTEMPT TO USE NEW FUNCTION BEFORE NEW FUNCTION MODE. SQLCODE=-4700, SQLSTATE=56038, DRIVER=3.53.71
更多例外 ... THE CURSOR SQL_CURLH200C2 IS NOT IN A PREPARED STATE. SQLCODE=-514, SQLSTATE=2