view tests/sql_ops.ur @ 1789:2e01a36701eb

Fix bug in handling of event attributes within client-side widgets
author Adam Chlipala <adam@chlipala.net>
date Sat, 21 Jul 2012 21:07:15 -0400
parents 5d494183ca89
children
line wrap: on
line source
table t : { A : int, B : float }

val q = (SELECT t.A + t.A AS X, t.B * t.B AS Y FROM t)

fun main () : transaction page =
    xml <- queryX q (fn r => <xml>{[r.X]}, {[r.Y]}<br/></xml>);
    return <xml><body>{xml}</body></xml>