Skip to content

Adding list of undefined parameter names to the 'Bind parameters must not contain undefined' error message #1706

Open
@theirongiant

Description

@theirongiant

Currently the error message shown is:
Error: Bind parameters must not contain undefined. To pass SQL NULL specify JS null

I've added some code to list which named parameters are undefined so the error message becomes:
Error: Bind parameters must not contain undefined (:id, :email). To pass SQL NULL specify JS null

Contributing guidelines says it's best to start an issue on changes before creating a PR so thought I'd mention here to see if it's of interest.

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