Files
email-tracker/external/duckdb/test/sql/attach/attach_defaults.test
2025-10-24 19:21:19 -05:00

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