diff options
author | Adam Chlipala <adamc@hcoop.net> | 2010-04-04 14:37:19 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2010-04-04 14:37:19 -0400 |
commit | eb89ae4814a7cf17f76f5ab5d191349ba13bdef4 (patch) | |
tree | 92dc9593a0b4e0f22cbe699ae412b79ddf11570e /tests/policy.ur | |
parent | 6a326e3bb3eb16e04f3cca082f0dd67278e85785 (diff) |
Generated basic dummy Iflow conditions
Diffstat (limited to 'tests/policy.ur')
-rw-r--r-- | tests/policy.ur | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/policy.ur b/tests/policy.ur index db87b582..1087bab9 100644 --- a/tests/policy.ur +++ b/tests/policy.ur @@ -1,3 +1,13 @@ -table fruit : { Id : int, Nam : string, Weight : float } +table fruit : { Id : int, Nam : string, Weight : float, Secret : string } -policy query_policy (SELECT * FROM fruit) +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) + (fn x => <xml><li>{[x.Fruit.Nam]}</li></xml>); + + return <xml><body> + {xml} + </body></xml> |