-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Open
Labels
sqliteIssues and PRs related to the SQLite subsystem.Issues and PRs related to the SQLite subsystem.
Description
SQL error reporting when using the SQLTagStore methods is extremely truncated, compared to conventional statement execution.
const sqlite = require('node:sqlite')
const db = new sqlite.DatabaseSync(':memory:')
const tagStore = db.createTagStore()
db.prepare('SELECT * FROM does_not_exist').all()
// Uncaught [Error: no such table: does_not_exist] {
// code: 'ERR_SQLITE_ERROR',
// errcode: 1,
// errstr: 'SQL logic error'
// }
tagStore.all`SELECT * FROM does_not_exist`
// Uncaught [Error: Failed to prepare statement] { code: 'ERR_SQLITE_ERROR' }
cc: @nodejs/sqlite
Metadata
Metadata
Assignees
Labels
sqliteIssues and PRs related to the SQLite subsystem.Issues and PRs related to the SQLite subsystem.