Skip to content

Commit

Permalink
pgwire/pgcode: fix DeprecatedInternalConnectionFailure
Browse files Browse the repository at this point in the history
This was moved from "08006" in #41451, not "XXC03".

Release note: None
  • Loading branch information
nvanbenschoten committed Dec 17, 2019
1 parent beb69e0 commit 7227df4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/sql/pgwire/pgcode/codes.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,6 @@ const (

// RangeUnavailable signals that some data from the cluster cannot be
// accessed (e.g. because all replicas awol).
// We're using the postgres "Internal Error" error class "XX".
RangeUnavailable = "58C00"
// DeprecatedRangeUnavailable is code that we used for RangeUnavailable until 19.2.
// 20.1 needs to recognize it coming from 19.2 nodes.
Expand All @@ -354,5 +353,5 @@ const (
// InternalConnectionFailure until 19.2.
// 20.1 needs to recognize it coming from 19.2 nodes.
// TODO(andrei): remove in 20.2.
DeprecatedInternalConnectionFailure = "XXC03"
DeprecatedInternalConnectionFailure = ConnectionFailure
)

0 comments on commit 7227df4

Please sign in to comment.