Restart signalMessage when receiving non-error message in CopyFrom
fixes #21
This commit is contained in:
@@ -1022,6 +1022,8 @@ func (pgConn *PgConn) CopyFrom(ctx context.Context, r io.Reader, sql string) (Co
|
|||||||
switch msg := msg.(type) {
|
switch msg := msg.(type) {
|
||||||
case *pgproto3.ErrorResponse:
|
case *pgproto3.ErrorResponse:
|
||||||
pgErr = ErrorResponseToPgError(msg)
|
pgErr = ErrorResponseToPgError(msg)
|
||||||
|
default:
|
||||||
|
signalMessageChan = pgConn.signalMessage()
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user