28 lines
504 B
SQL
28 lines
504 B
SQL
# 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
|