summaryrefslogtreecommitdiff
path: root/lib/ur/top.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2012-06-03 11:29:31 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2012-06-03 11:29:31 -0400
commit797db05343b520b16ea4f8eeab5fea6255d3284d (patch)
treedeacf0a9ebedccbc3e22fdb143c51d3dcc153a5b /lib/ur/top.ur
parent858481a426ea3873440c3bed30eb563f8cf3480e (diff)
Lighter-weight encoding of window function use
Diffstat (limited to 'lib/ur/top.ur')
-rw-r--r--lib/ur/top.ur10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ur/top.ur b/lib/ur/top.ur
index 60774ba5..e504204e 100644
--- a/lib/ur/top.ur
+++ b/lib/ur/top.ur
@@ -376,14 +376,14 @@ fun nonempty [fs] [us] (t : sql_table fs us) =
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)