should be it
This commit is contained in:
19
external/duckdb/test/sql/attach/attach_defaults.test
vendored
Normal file
19
external/duckdb/test/sql/attach/attach_defaults.test
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
# name: test/sql/attach/attach_defaults.test
|
||||
# description: Test default behavior of ATTACH statement
|
||||
# group: [attach]
|
||||
|
||||
# attach a new database
|
||||
statement ok
|
||||
ATTACH DATABASE ':memory:' AS new_database;
|
||||
|
||||
# we cannot attach a database with the same name
|
||||
statement error
|
||||
ATTACH ':memory:' AS new_database;
|
||||
----
|
||||
already exists
|
||||
|
||||
# without attach -> duplicate name (memory)
|
||||
statement error
|
||||
ATTACH ':memory:'
|
||||
----
|
||||
already exists
|
||||
Reference in New Issue
Block a user