annotate tests/random.ur @ 1682:ac141fbb313a

'ORDER BY RANDOM' (based on a patch from Ron de Bruijn)
author Adam Chlipala <adam@chlipala.net>
date Thu, 02 Feb 2012 11:40:10 -0500
parents
children
rev   line source
adam@1682 1 table t : { A : int }
adam@1682 2
adam@1682 3 fun main () : transaction page =
adam@1682 4 x <- queryX (SELECT *
adam@1682 5 FROM t
adam@1682 6 ORDER BY RANDOM)
adam@1682 7 (fn r => <xml>{[r.T.A]}<br/></xml>);
adam@1682 8 return <xml><body>{x}</body></xml>