summaryrefslogtreecommitdiffstats
path: root/test/misc2.test
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 17:30:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 17:30:13 +0000
commit5e33abd9c783fe2b9deae602544f1f6f0889958a (patch)
tree120f37dcc1339c59c97cd336badef4633015ec23 /test/misc2.test
parentAdding upstream version 3.45.2. (diff)
downloadsqlite3-5e33abd9c783fe2b9deae602544f1f6f0889958a.tar.xz
sqlite3-5e33abd9c783fe2b9deae602544f1f6f0889958a.zip
Adding upstream version 3.45.3.upstream/3.45.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/misc2.test')
-rw-r--r--test/misc2.test29
1 files changed, 22 insertions, 7 deletions
diff --git a/test/misc2.test b/test/misc2.test
index 4796d5d..607799e 100644
--- a/test/misc2.test
+++ b/test/misc2.test
@@ -54,19 +54,34 @@ do_test misc2-2.1 {
}
} {}
ifcapable subquery {
- do_catchsql_test misc2-2.2 {
- SELECT rowid, * FROM (SELECT * FROM t1, t2);
- } {1 {no such column: rowid}}
+ ifcapable allow_rowid_in_view {
+ do_catchsql_test misc2-2.2 {
+ SELECT rowid, * FROM (SELECT * FROM t1, t2);
+ } {0 {{} 1 2 3 7 8 9}}
+ } else {
+ do_catchsql_test misc2-2.2 {
+ SELECT rowid, * FROM (SELECT * FROM t1, t2);
+ } {1 {no such column: rowid}}
+ }
do_catchsql_test misc2-2.2b {
SELECT 'rowid', * FROM (SELECT * FROM t1, t2);
} {0 {rowid 1 2 3 7 8 9}}
}
ifcapable view {
- do_catchsql_test misc2-2.3 {
- CREATE VIEW v1 AS SELECT * FROM t1, t2;
- SELECT rowid, * FROM v1;
- } {1 {no such column: rowid}}
+ ifcapable allow_rowid_in_view {
+ do_catchsql_test misc2-2.3 {
+ CREATE VIEW v1 AS SELECT * FROM t1, t2;
+ SELECT rowid, * FROM v1;
+ } {0 {{} 1 2 3 7 8 9}}
+ } else {
+ do_catchsql_test misc2-2.3 {
+ CREATE VIEW v1 AS SELECT * FROM t1, t2;
+ SELECT rowid, * FROM v1;
+ } {1 {no such column: rowid}}
+ }
+
+
do_catchsql_test misc2-2.3b {
SELECT 'rowid', * FROM v1;
} {0 {rowid 1 2 3 7 8 9}}