UnQL

Check-in [806a057fa4]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add forgotten test file base06.test.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 806a057fa45a78d3654af5dce1f982c6ef7b20a3
User & Date: dan 2011-07-23 19:16:25
Context
2011-07-23
19:53
Return an error when an unknown object is referenced. i.e. for "SELECT x FROM y", return the error "no such object: x". check-in: 8b4dcb6e8a user: dan tags: trunk
19:16
Add forgotten test file base06.test. check-in: 806a057fa4 user: dan tags: trunk
15:56
Add an EXPLAIN keyword to statements. Updates to CREATE and DROP COLLECTION. check-in: 1074c34ce5 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added test/base06.test.























































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

.new t1.db


CREATE COLLECTION c1;
INSERT INTO c1 VALUE {i:2};
INSERT INTO c1 VALUE {i:1};
INSERT INTO c1 VALUE {i:4};
INSERT INTO c1 VALUE {i:3};
CREATE COLLECTION c2;
INSERT INTO c2 VALUE {i:3};
INSERT INTO c2 VALUE {i:5};
INSERT INTO c2 VALUE {i:2};
INSERT INTO c2 VALUE {i:4};
INSERT INTO c2 VALUE {i:3};

.testcase 2
SELECT x.i FROM c1 AS x UNION ALL SELECT x.i FROM c2 AS x;
.result 2 1 4 3 3 5 2 4 3

.testcase 3
SELECT x.i FROM c1 AS x UNION ALL SELECT x.i FROM c2 AS x ORDER BY x;
.result 1 2 2 3 3 3 4 4 5

.testcase 4
SELECT x.i FROM c1 AS x UNION ALL (SELECT x.i FROM c2 AS x);
.result 2 1 4 3 3 5 2 4 3

.testcase 5
SELECT x.i FROM c1 AS x UNION SELECT x.i FROM c2 AS x;
.result 1 2 3 4 5

.testcase 6
SELECT x.i FROM c1 AS x INTERSECT SELECT x.i FROM c2 AS x;
.result 2 3 4

.testcase 7
SELECT x.i FROM c1 AS x EXCEPT SELECT x.i FROM c2 AS x;
.result 1

.testcase 8
SELECT c1.i AS abc FROM c1;
.result 2 1 4 3