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
|
# name: test/sql/attach/attach_issue7567.test
# description: Issue #7567 - Setting the current schema should not change the current database
# group: [attach]
statement ok
attach ':memory:' as test;
statement ok
use test;
statement ok
create schema schema1;
statement ok
create table schema1.table1 as select 1 as a;
statement error
set schema='schema2';
----
No catalog + schema named "schema2" found
statement ok
set schema='schema1';
statement ok
select * from table1;
|