diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/basis.urs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/basis.urs b/lib/basis.urs index f9fc23d5..421a07bc 100644 --- a/lib/basis.urs +++ b/lib/basis.urs @@ -155,11 +155,10 @@ val bind : t1 ::: Type -> t2 ::: Type -> transaction t1 -> (t1 -> transaction t2) -> transaction t2 -val query : tables ::: {{Type}} -> exps ::: {Type} +val query : tables ::: {{Type}} -> exps ::: {Type} -> tables ~ exps -> sql_query tables exps -> state ::: Type - -> ($(fold (fn nm (fields :: {Type}) acc => [nm] ~ acc => [nm = $fields] ++ acc) [] tables) - -> $exps + -> ($(exps ++ fold (fn nm (fields :: {Type}) acc => [nm] ~ acc => [nm = $fields] ++ acc) [] tables) -> state -> transaction state) -> state |