Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The CLI cannot open a duckdb database created in R using version 1.1.3 or 1.1.3-1 #640

Open
BorgeJorge opened this issue Dec 8, 2024 · 1 comment

Comments

@BorgeJorge
Copy link

BorgeJorge commented Dec 8, 2024

This is under windows 10, and the bug seems to have crept in after version 1.0.0 for R, since this isn't a problem using that version. So for example, after running:

library(duckdb) # 1.1.3 or 1.1.3-1
con <- dbConnect(duckdb(), dbdir = 'mydb.duckdb')
dbExecute(con, "create table test as select 1")
dbDisconnect(con, shutdown = TRUE)

This is what happens in the CLI when you try to open the database:

D .open mydb.duckdb
Error: unable to open database "mydb.duckdb": IO Error: Cannot open file "mydb.duckdb": Access is denied.

The database also can't be opened in DBeaver, but it remains openable in R, and is also openable in Python.

@krlmlr
Copy link
Collaborator

krlmlr commented Dec 11, 2024

Thanks. What happens if you call gc() or restart the R session?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants