Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide full prepared query text in response and error object #143

Open
mayurbangar opened this issue Mar 21, 2024 · 0 comments
Open

Provide full prepared query text in response and error object #143

mayurbangar opened this issue Mar 21, 2024 · 0 comments

Comments

@mayurbangar
Copy link

When we get response back from the db

client.connect(query, params, (err, res) => { if(err) //This should have a field query which will give us the final prepared query that has caused error })

This will be very helpful to debug and to point out whether the issue is with syntax of query or parametrisation or anything else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant