diff src/mono_util.sml @ 2255:8428c534913a

Use new refactored urlification in Sqlcache.
author Ziv Scully <ziv@mit.edu>
date Mon, 21 Sep 2015 16:45:59 -0400
parents e843a04499d4
children
line wrap: on
line diff
--- a/src/mono_util.sml	Mon Sep 21 16:07:35 2015 -0400
+++ b/src/mono_util.sml	Mon Sep 21 16:45:59 2015 -0400
@@ -314,7 +314,7 @@
                      fn es' =>
                         (EClosure (n, es'), loc))
 
-              | EQuery {exps, tables, state, query, body, initial, sqlcacheInfo} =>
+              | EQuery {exps, tables, state, query, body, initial} =>
                 S.bind2 (ListUtil.mapfold (fn (x, t) =>
                                               S.map2 (mft t,
                                                       fn t' => (x, t'))) exps,
@@ -335,19 +335,15 @@
                                                                           body,
                                                                    fn body' =>
                                                                       (* ASK: is this the right thing to do? *)
-                                                                      S.bind2 (mfe ctx initial,
+                                                                      S.map2 (mfe ctx initial,
                                                                            fn initial' =>
-                                                                              S.map2 (mfe (bind (ctx, RelE ("queryResult", dummyt)))
-                                                                                          sqlcacheInfo,
-                                                                                    fn sqlcacheInfo' =>
-                                                                                       (EQuery {exps = exps',
-                                                                                                tables = tables',
-                                                                                                state = state',
-                                                                                                query = query',
-                                                                                                body = body',
-                                                                                                initial = initial',
-                                                                                                sqlcacheInfo = sqlcacheInfo},
-                                                                                        loc))))))))
+                                                                              (EQuery {exps = exps',
+                                                                                       tables = tables',
+                                                                                       state = state',
+                                                                                       query = query',
+                                                                                       body = body',
+                                                                                       initial = initial'},
+                                                                               loc)))))))
 
               | EDml (e, fm) =>
                 S.map2 (mfe ctx e,