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

Handles errors occurring during command execution #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pdonadeo
Copy link

An error may occur during a command, for example if the user INSERT a NULL value in a non nullable field.

In this case the Postgresql library don't raise any exception: the error is present in the result object, and is accessible via the
#error method.

I changed the error type which is now a "clone" of Postgresql.error with the addition of the new Result_error variant.

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

Successfully merging this pull request may close these issues.

1 participant