edgedb-python icon indicating copy to clipboard operation
edgedb-python copied to clipboard

In the Python query builder, `offset` is wrongly inserted in the generated EdgeQL after limit

Open scotttrinh opened this issue 5 months ago • 0 comments

With the following query:

await client.query(Model.select().limit(1).offset(1))

It generates the following EdgeQL:

SELECT default::Model {

}
LIMIT 1
OFFSET 1

Which returns the following query error:

E   gel.errors.EdgeQLSyntaxError: Unexpected keyword 'OFFSET'
E     ┌─ query:5:1
E     │ 
E   5 │   OFFSET 1
E     │   ^^^^^^ error

scotttrinh avatar Jun 18 '25 19:06 scotttrinh