20 lines
422 B
SQL
20 lines
422 B
SQL
# 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
|