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

Error when attaching a non-existent DuckDB database #3358

Closed
semihsalihoglu-uw opened this issue Apr 23, 2024 · 0 comments · Fixed by #3364
Closed

Error when attaching a non-existent DuckDB database #3358

semihsalihoglu-uw opened this issue Apr 23, 2024 · 0 comments · Fixed by #3364

Comments

@semihsalihoglu-uw
Copy link
Contributor

semihsalihoglu-uw commented Apr 23, 2024

I am testing the DuckDB extension and I attached to a non-existent DuckDB database. It still said that the database was attached successfully.

ATTACH 'funiversity.db' as uw (dbtype 'duckdb');
---------------------------------
| result                        |
---------------------------------
| Attach database successfully. |
---------------------------------

Let's instead error. In general, we should be in read-only mode since we don't have the capability yet to modify DuckDB (or Postgres or other databases we want to attach to).

There is also the inconsistent behavior that on Ziyi's machine, this command creates a new empty DuckDB database with database file funiversity.db. In my case it doesn't create that file. Let's get to the bottom of this too.

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

Successfully merging a pull request may close this issue.

2 participants