summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-12-03 17:07:34 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2011-12-03 17:07:34 -0500
commit40098da68420bb08aa0aa0889fa5298fd005c245 (patch)
tree4a3196962218f0210b35345956cb45b2f2b1cab9 /tests
parent4c2e04f12e462340edf88547db72d9b06806523b (diff)
New 't.*' notation for SELECT
Diffstat (limited to 'tests')
-rw-r--r--tests/selclause.ur6
-rw-r--r--tests/selclause.urp4
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/selclause.ur b/tests/selclause.ur
new file mode 100644
index 00000000..484c1ebc
--- /dev/null
+++ b/tests/selclause.ur
@@ -0,0 +1,6 @@
+table t : { A : int, B : string, C : float }
+table u : { D : int, E : string, F : float }
+
+val q : transaction (list {T : { A : int, B : string, C : float}, U : { D : int }, X : string }) =
+ queryL (SELECT t.*, u.D, 'hi' AS X
+ FROM t, u)
diff --git a/tests/selclause.urp b/tests/selclause.urp
new file mode 100644
index 00000000..ccd62626
--- /dev/null
+++ b/tests/selclause.urp
@@ -0,0 +1,4 @@
+database dbname=test
+sql selclause.sql
+
+selclause