Exposed: Paging on Oracle 12 still generates invalid query

Created on 11 Jan 2018  路  2Comments  路  Source: JetBrains/Exposed

I've just tested the paging on Oracle in the current (0.9.2) snapshot release but it is still not good.

If the limit function has both the offset and n values set the query is still invalid.

Currenty it looks like this:

SELECT ...
FROM table
OFFSET 20 FETCH FIRST 20 ROWS ONLY

However, it should be like this:

SELECT ...
FROM table
OFFSET 20 ROWS FETCH FIRST 20 ROWS ONLY;

So the ROWS keyword is missing before FETCH.

bug

Most helpful comment

All 2 comments

Thank you for the report, I think that {ROW | ROWS} part of OFFSET.. FETCH syntax is optional

Caused by: #210

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yuri-li picture yuri-li  路  3Comments

ncobc picture ncobc  路  3Comments

hannesstruss picture hannesstruss  路  5Comments

kszymanski85 picture kszymanski85  路  4Comments

fmgonsalves picture fmgonsalves  路  3Comments