view tests/random.ur @ 1772:141f234a91fb

Return to working version mode
author Adam Chlipala <adam@chlipala.net>
date Sat, 19 May 2012 12:12:54 -0400
parents ac141fbb313a
children
line wrap: on
line source
table t : { A : int }

fun main () : transaction page =
    x <- queryX (SELECT *
                 FROM t
                 ORDER BY RANDOM)
         (fn r => <xml>{[r.T.A]}<br/></xml>);
    return <xml><body>{x}</body></xml>