Mercurial > urweb
diff lib/ur/top.ur @ 1064:b89e3d8731ed
Make oneRowE1 more general
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 10 Dec 2009 12:06:03 -0500 |
parents | 5d9f47124c4c |
children | 9001966ae1c8 |
line wrap: on
line diff
--- a/lib/ur/top.ur Tue Dec 08 12:06:41 2009 -0500 +++ b/lib/ur/top.ur Thu Dec 10 12:06:03 2009 -0500 @@ -258,7 +258,7 @@ None => error <xml>Query returned no rows</xml> | Some r => r) -fun oneRowE1 [tab ::: Name] [nm ::: Name] [t ::: Type] [[tab] ~ [nm]] (q : sql_query [tab = []] [nm = t]) = +fun oneRowE1 [tabs ::: {Unit}] [nm ::: Name] [t ::: Type] [tabs ~ [nm]] (q : sql_query (mapU [] tabs) [nm = t]) = o <- oneOrNoRows q; return (case o of None => error <xml>Query returned no rows</xml>