Skip to content
This repository was archived by the owner on Jun 18, 2020. It is now read-only.
This repository was archived by the owner on Jun 18, 2020. It is now read-only.

Error returned from .query is malformed #106

@carnedv

Description

@carnedv

I'm using the development branch and cannot log the error message on failed .query calls because the error message is malformed.

Example:

{ [Error: [Microsoft][SQL Server Native Client 10.0][SQL Server]Violation of PRIMARY KEY constraint 'PK_Foo'. Cannot insert duplicate key in object 'dbo.Foo'.] sqlstate: '23000', code: 2627 }

sqlstate and code are retrievable as valid object properties, but the error message is not assigned to a property nor quoted to be a string, making it irretrievable/unusable.

To reproduce: using development branch, submit a .query that fails, then view err parameter in callback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions