diff options
author | Adam Chlipala <adamc@hcoop.net> | 2010-04-04 15:17:57 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2010-04-04 15:17:57 -0400 |
commit | cfde341ff74fbee501da623d765c8ed6cbf3731f (patch) | |
tree | ab9d03d7c83ecb51d10a3e6d884f07d15741df66 /tests/policy.ur | |
parent | eb89ae4814a7cf17f76f5ab5d191349ba13bdef4 (diff) |
Generating a good Iflow condition for a test query
Diffstat (limited to 'tests/policy.ur')
-rw-r--r-- | tests/policy.ur | 5 |
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> |