diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-04-28 10:11:56 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-04-28 10:11:56 -0400 |
commit | 04dd6b3727c7786a4824897e78b0b2982ecd6f5b (patch) | |
tree | a004501c5981c841f5e58ffa7063b9f16fa6e78e /src/monoize.sml | |
parent | d44f359d3913fc9cc8a284919180d78f083a6159 (diff) |
INNER JOIN
Diffstat (limited to 'src/monoize.sml')
-rw-r--r-- | src/monoize.sml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/monoize.sml b/src/monoize.sml index 8d8f07d4..98a32492 100644 --- a/src/monoize.sml +++ b/src/monoize.sml @@ -1728,6 +1728,22 @@ fun monoExp (env, st, fm) (all as (e, loc)) = (L'.ERel 0, loc)]), loc)), loc), fm) end + | L.ECApp ((L.ECApp ((L.EFfi ("Basis", "sql_inner_join"), _), _), _), _) => + let + val s = (L'.TFfi ("Basis", "string"), loc) + in + ((L'.EAbs ("tab1", s, (L'.TFun (s, (L'.TFun (s, s), loc)), loc), + (L'.EAbs ("tab2", s, (L'.TFun (s, s), loc), + (L'.EAbs ("on", s, s, + strcat [(L'.EPrim (Prim.String "("), loc), + (L'.ERel 2, loc), + (L'.EPrim (Prim.String " JOIN "), loc), + (L'.ERel 1, loc), + (L'.EPrim (Prim.String " ON "), loc), + (L'.ERel 0, loc), + (L'.EPrim (Prim.String ")"), loc)]), loc)), loc)), loc), + fm) + end | L.ECApp ((L.ECApp ((L.EFfi ("Basis", "sql_order_by_Nil"), _), _), _), _) => ((L'.EPrim (Prim.String ""), loc), fm) |