duckdb / duckdb/duckdb-node

sqlite_query fails with out of memory error

Open
#173 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
91
Forks
36
PR merge metrics
No merged PRs in 30d

Description

To reproduce
```test.js
var duckdb = require('duckdb');
var db = new duckdb.Database('sqlite:/tmp/dummy.db');
db.all("SELECT * from sqlite_query('dummy', 'SELECT 1')", function (err, res) {
if (err) {
console.warn(err);
}
console.log(res[0])
});
```

```sh
>node test.js
[Error: Invalid Error: Failed to prepare query "SELECT 1": out of memory] {
errno: -1,
code: 'DUCKDB_NODEJS_ERROR',
errorType: 'Invalid'
}
terminate called after throwing an instance of 'Napi::Error'
what(): Cannot read properties of undefined (reading '0')
Aborted (core dumped)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.