summaryrefslogtreecommitdiff
path: root/src/compiler.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-01-15 14:53:13 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2011-01-15 14:53:13 -0500
commit5ec949e910342f6212c85c8df75283d091817408 (patch)
treef006a9c9104c45938d59a3ee34e251ada814e5e1 /src/compiler.sml
parente3ce087d0a3473e3905556c226d6c5bbb2bc9a39 (diff)
Allow subqueries to reference aggregate-only columns of free tables; treat non-COUNT aggregate functions as possibly returning NULL
Diffstat (limited to 'src/compiler.sml')
-rw-r--r--src/compiler.sml10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/compiler.sml b/src/compiler.sml
index c8bb036a..61fa23b1 100644
--- a/src/compiler.sml
+++ b/src/compiler.sml
@@ -1311,9 +1311,15 @@ fun compileC {cname, oname, ename, libs, profile, debug, link = link'} =
(compile, link)
val link = foldl (fn (s, link) => link ^ " " ^ s) link link'
+
+ fun system s =
+ (if debug then
+ print (s ^ "\n")
+ else
+ ();
+ OS.Process.isSuccess (OS.Process.system s))
in
- OS.Process.isSuccess (OS.Process.system compile)
- andalso OS.Process.isSuccess (OS.Process.system link)
+ system compile andalso system link
end
fun compile job =