2
0
This commit is contained in:
Jack Christensen
2013-04-11 21:12:02 -05:00
parent 431b44eefe
commit 7683e5cfa7
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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
View File
@@ -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 {