mindplay-dk / sql

Database framework and query builder
Other
18 stars 6 forks source link

Use the sql state error code #39

Closed boan-jfm closed 6 years ago

boan-jfm commented 7 years ago

I'll did this to point out what the issue is about, you are welcome to disagree, or update.

But I need the sql state error code in my project, and the only way to get the code is from the string right now. I think the driver error code is for more "internal" use?

But at least, I am more intetessered in the datebase error codes (https://www.postgresql.org/docs/9.4/static/errcodes-appendix.html) when I call getCode() on the exception :-)

boan-jfm commented 7 years ago

This PR is for issue 38: https://github.com/mindplay-dk/sql/issues/38