Closed lukaseder closed 9 years ago
Thank you very much, indeed you are right. I guess I was misguided by official FAQ (point 5.2) suggesting OFFSET ... FETCH
was introduced in 10.7 - but apprently it's already available in 10.5. Once again thanks for reporting this.
Sure, no worries. I just learned that Derby has partial support for window functions :)
I've had a brief review of your solution and found that you're using
ROW_NUMBER() OVER()
window functions for pagination in Derby: https://github.com/nurkiewicz/spring-data-jdbc-repository/blob/master/src/main/java/com/nurkiewicz/jdbcrepository/sql/DerbySqlGenerator.java#L13But Derby supports the SQL standard
OFFSET .. FETCH
clause: http://db.apache.org/derby/docs/10.6/ref/rrefsqljoffsetfetch.htmlWhy aren't you using that instead?