summaryrefslogtreecommitdiff
path: root/tests/policy.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2010-04-04 15:17:57 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2010-04-04 15:17:57 -0400
commitcfde341ff74fbee501da623d765c8ed6cbf3731f (patch)
treeab9d03d7c83ecb51d10a3e6d884f07d15741df66 /tests/policy.ur
parenteb89ae4814a7cf17f76f5ab5d191349ba13bdef4 (diff)
Generating a good Iflow condition for a test query
Diffstat (limited to 'tests/policy.ur')
-rw-r--r--tests/policy.ur5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/policy.ur b/tests/policy.ur
index 1087bab9..c381beac 100644
--- a/tests/policy.ur
+++ b/tests/policy.ur
@@ -3,9 +3,8 @@ table fruit : { Id : int, Nam : string, Weight : float, Secret : string }
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>