diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-08-31 15:36:15 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-08-31 15:36:15 -0400 |
commit | 1d2a33433b530bdfe2c4cf7c7f0e6bc7190d87c5 (patch) | |
tree | 438e4fa54e6e8a7a8450cc051c374262c0d60250 /src/mono_opt.sml | |
parent | dcd7b7d304959739432b3e2497491c36f14f2b4f (diff) |
Monoize HAVING
Diffstat (limited to 'src/mono_opt.sml')
-rw-r--r-- | src/mono_opt.sml | 4 |
1 files changed, 3 insertions, 1 deletions
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 |