diff options
Diffstat (limited to 'tests/limit.ur')
-rw-r--r-- | tests/limit.ur | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/limit.ur b/tests/limit.ur new file mode 100644 index 00000000..5bfb1a81 --- /dev/null +++ b/tests/limit.ur @@ -0,0 +1,7 @@ +table t : {A : int, B : string, C : float} + +val q1 = (SELECT * FROM t LIMIT 42) +val q2 = fn n => (SELECT * FROM t LIMIT {n}) + +val q3 = (SELECT * FROM t OFFSET 3) +val q4 = fn n => fn m => (SELECT * FROM t LIMIT {n} OFFSET {m}) |