diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-09-07 09:28:13 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-09-07 09:28:13 -0400 |
commit | 1777fbbddce252990fc5055e4e5462123938483c (patch) | |
tree | d38bcc3f03b117015ed1691f79c921acf1651bfa /src/compiler.sml | |
parent | 711796ea5b4bf5d36b644eafa1b198ed3e4e1798 (diff) |
Ran a prepared statement with one string parameter
Diffstat (limited to 'src/compiler.sml')
-rw-r--r-- | src/compiler.sml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/compiler.sml b/src/compiler.sml index 263aaf9a..773cf578 100644 --- a/src/compiler.sml +++ b/src/compiler.sml @@ -451,6 +451,13 @@ val cjrize = { val toCjrize = transform cjrize "cjrize" o toMono_opt2 +val prepare = { + func = Prepare.prepare, + print = CjrPrint.p_file CjrEnv.empty +} + +val toPrepare = transform prepare "prepare" o toCjrize + val sqlify = { func = Cjrize.cjrize, print = CjrPrint.p_sql CjrEnv.empty @@ -472,7 +479,7 @@ fun compileC {cname, oname, ename} = end fun compile job = - case run toCjrize job of + case run toPrepare job of NONE => print "Ur compilation failed\n" | SOME file => let |