Skip to content

Query timeout with callback never emits 'error' #3812

Open

Description

@mikemasam

client.query({ text, query_timeout }, cb) + query.on('error'): timeout only reaches cb, event never fires. Success path does both (cb + 'end').

Query.handleError is callback-xor-emit by design (locked by query-error-handling-prepared-statement-tests.js), so blind dual-emit (#3811) breaks back-compat.

Activity

  1. mikemasam commented on Oct 11, 2026

    @mikemasam
    Author

    pull request submitted (#3815) which passes all the tests

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions