summaryrefslogtreecommitdiff
path: root/src/cjr_print.sml
diff options
context:
space:
mode:
Diffstat (limited to 'src/cjr_print.sml')
-rw-r--r--src/cjr_print.sml6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cjr_print.sml b/src/cjr_print.sml
index b90854a1..f784f3d4 100644
--- a/src/cjr_print.sml
+++ b/src/cjr_print.sml
@@ -898,7 +898,7 @@ fun p_exp' par env (e, loc) =
end
| EDml {dml, prepared} =>
- box [string "({",
+ box [string "(uw_begin_region(ctx), ({",
newline,
string "PGconn *conn = uw_get_db(ctx);",
newline,
@@ -970,9 +970,11 @@ fun p_exp' par env (e, loc) =
string "PQclear(res);",
newline,
+ string "uw_end_region(ctx);",
+ newline,
string "uw_unit_v;",
newline,
- string "})"]
+ string "}))"]
and p_exp env = p_exp' false env