File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 2
2
# description: Test switching from detached catalog to another catalog
3
3
# group: [catalog]
4
4
5
- statement ok con1;
5
+ statement ok con1
6
6
ATTACH ':memory:' AS db1;
7
7
8
- statement ok con1;
8
+ statement ok con1
9
9
ATTACH ':memory:' AS db2;
10
10
11
- statement ok con1;
11
+ statement ok con1
12
12
USE db1;
13
13
14
- query I con1;
14
+ query I con1
15
15
SELECT CURRENT_SETTING('search_path');
16
16
----
17
17
db1.main
18
18
19
- statement ok con2;
19
+ statement ok con2
20
20
USE db2;
21
21
22
22
# drop catalog db1, which con1 is using
23
- statement ok con2;
23
+ statement ok con2
24
24
DETACH db1;
25
25
26
26
# querying within the detached catalog fails
27
- statement error con1;
27
+ statement error con1
28
28
SHOW TABLES;
29
29
----
30
30
Binder Error: Catalog "db1" does not exist!
You can’t perform that action at this time.
0 commit comments