should be it
This commit is contained in:
26
external/duckdb/test/sql/attach/attach_issue7567.test
vendored
Normal file
26
external/duckdb/test/sql/attach/attach_issue7567.test
vendored
Normal file
@@ -0,0 +1,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;
|
||||
Reference in New Issue
Block a user