spring boot - When i am using it with db2 for pagination, my next page is giving error -


i using spring data jpa db2. first set of record coming. when next, giving me error. guess may because of db2. when use index 0 working fine. when use index 1 giving data access exception.

on second page getting below error pageable object

pageable pageable = new pagerequest(2, 10, direction.asc, "messageid"), because of 2(as mentioning index should 0), throwing below error

com.ibm.db2.jcc.am.sqlsyntaxerrorexception: db2 sql error: sqlcode=-199, sqlstate=42601, sqlerrmc=of;??( [ desc asc nulls range concat || / microseconds microsecond, driver=3.69.24

actually org.hibernate.dialect.db2dialect class generates invalid query why failing have correct query overiding method.

replace over( order order of inner2_)  over() 

Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -