MCPcopy 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.
175func (e *Error) SQLState() string { return string(e.Code) }
176
177func (e *Error) Error() string {
178 msg := e.Message

Callers 1

TestErrorSQLStateFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestErrorSQLStateFunction · 0.64