Help getting SQL Error Codes? #1005
Answered
by
aarondl
danthegoodman1
asked this question in
Q&A
-
For example, if I try to insert a row in which the primary key already exists (postgres/CRDB), I would like to be able to look at the corresponding code I'm struggling to find out how to extract these error codes from the error returned. |
Beta Was this translation helpful? Give feedback.
Answered by
aarondl
Nov 14, 2021
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
stephenafamo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
errors.As
should work with this library for introspecting errors that are returned.