1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: handle limit and offset

This commit is contained in:
Alexander Medvednikov
2020-06-27 16:41:29 +02:00
parent 3672cfad0b
commit 190f970544
2 changed files with 27 additions and 15 deletions

View File

@ -180,6 +180,13 @@ fn test_orm_sqlite() {
}
assert y.len == 2
assert y[0].id == 2
//
offset_const := 2
z := sql db {
select from User limit 2 offset offset_const
}
assert z.len == 2
assert z[0].id == 3
}
struct User {