go fmt
This commit is contained in:
@@ -204,7 +204,7 @@ func (c *conn) rxErrorResponse(r *messageReader) (err PgError) {
|
|||||||
case 0: // End of error message
|
case 0: // End of error message
|
||||||
return
|
return
|
||||||
default: // Ignore other error fields
|
default: // Ignore other error fields
|
||||||
r.readString();
|
r.readString()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -15,7 +15,7 @@ const (
|
|||||||
rowDescription = 'T'
|
rowDescription = 'T'
|
||||||
dataRow = 'D'
|
dataRow = 'D'
|
||||||
commandComplete = 'C'
|
commandComplete = 'C'
|
||||||
errorResponse = 'E'
|
errorResponse = 'E'
|
||||||
)
|
)
|
||||||
|
|
||||||
type startupMessage struct {
|
type startupMessage struct {
|
||||||
@@ -54,8 +54,8 @@ type fieldDescription struct {
|
|||||||
|
|
||||||
type PgError struct {
|
type PgError struct {
|
||||||
Severity string
|
Severity string
|
||||||
Code string
|
Code string
|
||||||
Message string
|
Message string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self PgError) Error() string {
|
func (self PgError) Error() string {
|
||||||
|
|||||||
Reference in New Issue
Block a user