diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-07-16 18:10:29 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-07-16 18:10:29 -0400 |
commit | c01c7e97334a180b55b11a1bba93cf046628948d (patch) | |
tree | e68fb2c7ffcd8dd34ff69f24a48de2ada1c06684 /src/compiler.sml | |
parent | 4289cd07dd2467dfbad297cf21ad7cfaedc08f2b (diff) |
Demo working with MySQL
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 9cf874c7..03454638 100644 --- a/src/compiler.sml +++ b/src/compiler.sml @@ -884,6 +884,13 @@ val prepare = { val toPrepare = transform prepare "prepare" o toScriptcheck +val checknest = { + func = fn f => if #supportsNestedPrepared (Settings.currentDbms ()) then f else Checknest.annotate f, + print = CjrPrint.p_file CjrEnv.empty +} + +val toChecknest = transform checknest "checknest" o toPrepare + val sqlify = { func = Cjrize.cjrize, print = CjrPrint.p_sql CjrEnv.empty @@ -924,7 +931,7 @@ fun compileC {cname, oname, ename, libs, profile, debug, link = link'} = end fun compile job = - case run toPrepare job of + case run toChecknest job of NONE => print "Ur compilation failed\n" | SOME file => let |