We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 72f7837 + 8d5719c commit 82efecdCopy full SHA for 82efecd
server/conn.go
@@ -89,6 +89,9 @@ func (c *clientConn) serve() error {
89
if c.db != nil {
90
// Detach DuckLake to release the RDS metadata connection
91
if c.server.cfg.DuckLake.MetadataStore != "" {
92
+ // Must switch away from ducklake before detaching - DuckDB doesn't allow
93
+ // detaching the default database
94
+ c.db.Exec("USE memory")
95
if _, err := c.db.Exec("DETACH ducklake"); err != nil {
96
log.Printf("Warning: failed to detach DuckLake for user %q: %v", c.username, err)
97
}
0 commit comments