summaryrefslogtreecommitdiff
path: root/tests/coalesce.ur
diff options
context:
space:
mode:
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>)