summaryrefslogtreecommitdiff
path: root/tests/coalesce.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-11-19 10:43:57 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2011-11-19 10:43:57 -0500
commite43dd849a122a59fa2c22278ddf9c9a09d1550bd (patch)
treeb8e125a96ec1466c542b24651ef1ce4027f21193 /tests/coalesce.ur
parent9a047b4f248ace0615eaf18ba130e14e49634723 (diff)
COALESCE
Diffstat (limited to 'tests/coalesce.ur')
-rw-r--r--tests/coalesce.ur6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/coalesce.ur b/tests/coalesce.ur
new file mode 100644
index 00000000..5ee8cf19
--- /dev/null
+++ b/tests/coalesce.ur
@@ -0,0 +1,6 @@
+table t : { A : option int }
+
+fun main () : transaction page =
+ queryX (SELECT COALESCE(t.A, 13)
+ FROM t)
+ (fn r => <xml>{[r.1]},</xml>)