summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-08-14 15:24:59 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-08-14 15:24:59 -0400
commit9a65eddb59384f5784ed3ef0a641ca65b52645ce (patch)
tree6c2cbea03ee39858bde49e54932e19e744ba84c6 /tests
parent14fbe79a3735e547f03cd8e95ca925fbdbb1841a (diff)
Elaborating 'SELECT *' queries
Diffstat (limited to 'tests')
-rw-r--r--tests/table.lac13
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/table.lac b/tests/table.lac
index 4c44f857..30422db2 100644
--- a/tests/table.lac
+++ b/tests/table.lac
@@ -1,3 +1,12 @@
-table t : {A : int, B : string, C : float}
+table t1 : {A : int, B : string, C : float}
-val my_query = (SELECT * FROM t)
+val q1 = (SELECT * FROM t1)
+
+table t2 : {A : float, D : int}
+
+val q2 = (SELECT * FROM t1, t2)
+
+(*val q3 = (SELECT * FROM t1, t1)*)
+val q3 = (SELECT * FROM t1, t1 AS T2)
+
+val q4 = (SELECT * FROM {t1} AS T, t1 AS T2)