Mercurial > urweb
diff tests/policy.ur @ 1203:a75c66dd2aeb
Relax checking of table implications
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 04 Apr 2010 16:44:34 -0400 |
parents | 509a6d7b60fb |
children | 7af5e2af64f4 |
line wrap: on
line diff
--- a/tests/policy.ur Sun Apr 04 16:17:23 2010 -0400 +++ b/tests/policy.ur Sun Apr 04 16:44:34 2010 -0400 @@ -1,11 +1,11 @@ table fruit : { Id : int, Nam : string, Weight : float, Secret : string } -policy query_policy (SELECT fruit.Id, fruit.Nam FROM fruit) +policy query_policy (SELECT fruit.Id, fruit.Nam, fruit.Weight FROM fruit) fun main () = - xml <- queryX (SELECT fruit.Id, fruit.Nam, fruit.Secret + xml <- queryX (SELECT fruit.Id, fruit.Nam FROM fruit) - (fn x => <xml><li>{[x.Fruit.Secret]}</li></xml>); + (fn x => <xml><li>{[x.Fruit.Id]}: {[x.Fruit.Nam]}</li></xml>); return <xml><body> {xml}