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

Error handling enhancement to PDO wrapper #42

Open
adam-patterson opened this issue Mar 18, 2013 · 1 comment
Open

Error handling enhancement to PDO wrapper #42

adam-patterson opened this issue Mar 18, 2013 · 1 comment
Assignees

Comments

@adam-patterson
Copy link
Collaborator

It would be useful if the PDO wrapper handled DB errors more verbosely (in debug mode).

I recently had a situation where an error generated in a stored function called from a trigger gave me an error message along the lines of:

{'code': '500', 'msg': 'Table Rubrix.op does not exist'}

Here, op was the table's alias in the query executed in the stored function, so it didn't help at all. It would have saved me a lot of time to have the PDO wrapper give me a stack trace for that error. I'm not sure if that is possible, but at the least we should be able to add the fact that the error was originally generated from a trigger and the name of the trigger.

@ghost ghost assigned adam-patterson Mar 18, 2013
@adam-patterson
Copy link
Collaborator Author

Additional error handling should work from the context of stored functions, and procedures, triggers if possible.

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

No branches or pull requests

1 participant