From 1d2a33433b530bdfe2c4cf7c7f0e6bc7190d87c5 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sun, 31 Aug 2008 15:36:15 -0400 Subject: Monoize HAVING --- src/mono_opt.sml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mono_opt.sml') diff --git a/src/mono_opt.sml b/src/mono_opt.sml index 1430dfe2..3946684a 100644 --- a/src/mono_opt.sml +++ b/src/mono_opt.sml @@ -84,7 +84,9 @@ val urlifyString = String.translate (fn #" " => "+" val sqlifyInt = attrifyInt val sqlifyFloat = attrifyFloat -fun sqlifyString s = "E'" ^ String.toString s ^ "'" +fun sqlifyString s = "E'" ^ String.translate (fn #"'" => "\\'" + | ch => str ch) + (String.toString s) ^ "'" fun exp e = case e of -- cgit v1.2.3