Mercurial > urweb
diff tests/policy.ur @ 1201:8793fd48968c
Generating a good Iflow condition for a test query
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 04 Apr 2010 15:17:57 -0400 |
parents | 5eac14322548 |
children | 509a6d7b60fb |
line wrap: on
line diff
--- a/tests/policy.ur Sun Apr 04 14:37:19 2010 -0400 +++ b/tests/policy.ur Sun Apr 04 15:17:57 2010 -0400 @@ -3,9 +3,8 @@ policy query_policy (SELECT fruit.Id, fruit.Nam, fruit.Weight FROM fruit) fun main () = - xml <- queryX (SELECT fruit.Nam - FROM fruit - ORDER BY fruit.Nam) + xml <- queryX (SELECT fruit.Id, fruit.Nam + FROM fruit) (fn x => <xml><li>{[x.Fruit.Nam]}</li></xml>); return <xml><body>