summaryrefslogtreecommitdiff
path: root/tests/random.ur
diff options
context:
space:
mode:
Diffstat (limited to 'tests/random.ur')
-rw-r--r--tests/random.ur8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/random.ur b/tests/random.ur
new file mode 100644
index 00000000..b2006302
--- /dev/null
+++ b/tests/random.ur
@@ -0,0 +1,8 @@
+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>