Closed
Description
SQLDelight Version
master
Operating System
macOS
Gradle Version
7.2
Kotlin Version
1.5.31
AGP Version
No response
Describe the Bug
I wanted to try out Keyset Paging and added a query for it however compilation fails at the OVER
clause despite changing the dialect to 3.25
Stacktrace
> Task :common:generateCommonMainHockeyDbInterface FAILED
/Users/gabriel/Downloads/sqldelight/sample/common/src/commonMain/sqldelight/com/example/sqldelight/hockey/data/Player.sq: (39, 31): ')' or <expr> expected, got 'ORDER'
34 SELECT id
35 FROM (
36 SELECT
37 id,
38 CASE
39 WHEN ((row_number() OVER(ORDER BY id ASC) - 0) % :limit) = 0 THEN 1
^^^^^
40 WHEN id = :anchor THEN 1
41 ELSE 0
42 END page_boundary
Gradle Build Script
Here is a reproducer where I added the sample from the docs and set the dialect to 3.25 in the sample project: master...gabrielittner:sample-over-clause