summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-08-31 16:10:20 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-08-31 16:10:20 -0400
commita7ffe5cf661a65e0dc48b90f16df9746de034096 (patch)
treecf1d476add4d86556e5ad0c3f3a5640748e8d5b1 /src
parent578034280bdf2b7172e71b3f36b6db6db3ce53eb (diff)
Monoize LIMIT
Diffstat (limited to 'src')
-rw-r--r--src/monoize.sml11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/monoize.sml b/src/monoize.sml
index d2da6e27..620956f7 100644
--- a/src/monoize.sml
+++ b/src/monoize.sml
@@ -739,6 +739,17 @@ fun monoExp (env, st, fm) (all as (e, loc)) =
| L.EFfi ("Basis", "sql_no_limit") =>
((L'.EPrim (Prim.String ""), loc), fm)
+ | L.EFfiApp ("Basis", "sql_limit", [e]) =>
+ let
+ val (e, fm) = monoExp (env, st, fm) e
+ in
+ (strcat loc [
+ (L'.EPrim (Prim.String " LIMIT "), loc),
+ (L'.EFfiApp ("Basis", "sqlifyInt", [e]), loc)
+ ],
+ fm)
+ end
+
| L.EFfi ("Basis", "sql_no_offset") =>
((L'.EPrim (Prim.String ""), loc), fm)