diff lib/ur/top.ur @ 1778:818d4097e2ed

Lighter-weight encoding of window function use
author Adam Chlipala <adam@chlipala.net>
date Sun, 03 Jun 2012 11:29:31 -0400
parents 6bc2a8cb3a67
children 69daa6d70299
line wrap: on
line diff
--- a/lib/ur/top.ur	Sat Jun 02 16:47:09 2012 -0400
+++ b/lib/ur/top.ur	Sun Jun 03 11:29:31 2012 -0400
@@ -376,14 +376,14 @@
     oneRowE1 (SELECT COUNT( * ) > 0 AS B FROM t)
 
 fun eqNullable [tables ::: {{Type}}] [agg ::: {{Type}}] [exps ::: {Type}]
-    [aw ::: {Unit}] [t ::: Type] (_ : sql_injectable (option t))
-    (e1 : sql_exp tables agg exps aw (option t))
-    (e2 : sql_exp tables agg exps aw (option t)) =
+    [t ::: Type] (_ : sql_injectable (option t))
+    (e1 : sql_exp tables agg exps (option t))
+    (e2 : sql_exp tables agg exps (option t)) =
     (SQL ({e1} IS NULL AND {e2} IS NULL) OR {e1} = {e2})
 
 fun eqNullable' [tables ::: {{Type}}] [agg ::: {{Type}}] [exps ::: {Type}]
-    [aw ::: {Unit}] [t ::: Type] (_ : sql_injectable (option t))
-    (e1 : sql_exp tables agg exps aw (option t))
+    [t ::: Type] (_ : sql_injectable (option t))
+    (e1 : sql_exp tables agg exps (option t))
     (e2 : option t) =
     case e2 of
         None => (SQL {e1} IS NULL)