Skip to content

sqlite: less-than-useful error reporting when using SQLTagStore queries #60198

Description

@Renegade334

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

Activity

  1. added
    sqliteIssues and PRs related to the SQLite subsystem.
    on Oct 11, 2025
  2. louwers commented on Dec 1, 2025

    @louwers
    Contributor

    It's not just when preparing queries, it's also when running queries.

  3. sebastiancarlos commented on Apr 3, 2026

    @sebastiancarlos

    Hey there. Is this on the roadmap for before reaching stable?

  4. github-actions commented on Jul 20, 2026

    @github-actions
    Contributor

    This issue has been marked as stale due to 90 days of inactivity.
    It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.

  5. added
    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.
    on Jul 20, 2026
  6. trivikr commented on Aug 31, 2026

    @trivikr
    Member

    This was fixed in #61096

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    sqliteIssues and PRs related to the SQLite subsystem.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions