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
|
# name: test/sql/attach/attach_issue16122.test
# description: Issue #16122 - Attach binding to incorrect table
# group: [attach]
load __TEST_DIR__/issue16122.db
statement ok
create table mytable (C1 VARCHAR(10));
statement ok
insert into mytable values ('a');
statement ok
attach '__TEST_DIR__/issue16122_new.db' as TOMERGE;
statement ok
create table TOMERGE.mytable (C1 VARCHAR(10));
query I
insert into TOMERGE.mytable SELECT * FROM mytable;
----
1
query I
select * from TOMERGE.mytable;
----
a
|