summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ur/basis.urs6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ur/basis.urs b/lib/ur/basis.urs
index 545e65aa..4b53659d 100644
--- a/lib/ur/basis.urs
+++ b/lib/ur/basis.urs
@@ -320,12 +320,14 @@ val sql_query1 : tables ::: {{Type}}
-> grouped ::: {{Type}}
-> selectedFields ::: {{Type}}
-> selectedExps ::: {Type}
- -> {Distinct : bool,
+ -> empties :: {Unit}
+ -> [empties ~ selectedFields]
+ => {Distinct : bool,
From : sql_from_items tables,
Where : sql_exp tables [] [] bool,
GroupBy : sql_subset tables grouped,
Having : sql_exp grouped tables [] bool,
- SelectFields : sql_subset grouped selectedFields,
+ SelectFields : sql_subset grouped (map (fn _ => []) empties ++ selectedFields),
SelectExps : $(map (sql_exp grouped tables [])
selectedExps) }
-> sql_query1 tables selectedFields selectedExps