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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user