duckdb / sqlite_scanner

DuckDB extension to read and write to SQLite databases
MIT License
190 stars 19 forks source link

Out of memory trying to attach non-existing file #32

Closed sjaenick closed 1 year ago

sjaenick commented 1 year ago

What happens?

When trying to attach a missing file, an out of memory error is thrown.

To Reproduce

$  ./build/release/duckdb -unsigned 
v0.7.1-dev126 d34bcaf40b
Enter ".help" for usage hints.
D LOAD 'build/release/extension/sqlite_scanner/sqlite_scanner.duckdb_extension';
D CALL sqlite_attach('doesnotexist.db');
Error: Invalid Error: out of memory

OS:

Linux

SQLite Version:

-

DuckDB Version:

v0.7.1-dev126 d34bcaf40b

DuckDB Client:

CLI

Full Name:

Sebastian Jaenicke

Affiliation:

-

Have you tried this on the latest master branch?

Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?

sjaenick commented 1 year ago

Related: https://github.com/duckdblabs/sqlite_scanner/issues/22