Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lib/pq
/ SQLState
Method
SQLState
error.go:175–175 ·
view source on GitHub ↗
SQLState returns the SQLState of the error.
()
Source
from the content-addressed store, hash-verified
173
174
// SQLState returns the SQLState of the error.
175
func
(e *Error) SQLState() string {
return
string(e.Code) }
176
177
func
(e *Error) Error() string {
178
msg := e.Message
Callers
1
TestErrorSQLState
Function · 0.80
Calls
no outgoing calls
Tested by
1
TestErrorSQLState
Function · 0.64