should be it
This commit is contained in:
20
external/duckdb/test/sql/attach/attach_issue7711.test
vendored
Normal file
20
external/duckdb/test/sql/attach/attach_issue7711.test
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
# name: test/sql/attach/attach_issue7711.test
|
||||
# description: Issue #7711 - Detaching the current database prevents from using another one
|
||||
# group: [attach]
|
||||
|
||||
statement ok
|
||||
attach ':memory:' as test;
|
||||
|
||||
statement ok
|
||||
use test;
|
||||
|
||||
statement error
|
||||
detach test;
|
||||
----
|
||||
Cannot detach database "test" because it is the default database
|
||||
|
||||
statement ok
|
||||
use memory
|
||||
|
||||
statement ok
|
||||
detach test
|
||||
Reference in New Issue
Block a user