File: attach_issue16122.test

package info (click to toggle)
duckdb 1.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 299,196 kB
  • sloc: cpp: 865,414; ansic: 57,292; python: 18,871; sql: 12,663; lisp: 11,751; yacc: 7,412; lex: 1,682; sh: 747; makefile: 558
file content (27 lines) | stat: -rw-r--r-- 504 bytes parent folder | download | duplicates (3)
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