Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pgcode: use XC instead of CDB #70347

Merged
merged 1 commit into from
Sep 20, 2021
Merged

Conversation

otan
Copy link
Contributor

@otan otan commented Sep 17, 2021

Release note (sql change): Change the pgerror code XC instead of CD
for CockroachDB specific errors. This is because the "C" class is
reserved for the SQL standard. The pgcode CDB00 used for
unsatisfiable bounded staleness is now XCUBS.

@otan otan requested review from knz and rafiss September 17, 2021 09:16
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @otan and @rafiss)


pkg/sql/pgwire/pgcode/codes.go, line 383 at r1 (raw file):

	InternalConnectionFailure = MakeCode("58C01")

	// Class XCR - cockroach extension.

Classes are two characters. Make this "XC"


pkg/sql/pgwire/pgcode/codes.go, line 388 at r1 (raw file):

	// UnsatisfiableBoundedStaleness signals that the bounded staleness query
	// cannot be satisfied.
	UnsatisfiableBoundedStaleness = MakeCode("XCR00")

"XCUBS"?

@otan otan changed the title pgcode: use XCR instead of CDB pgcode: use XC instead of CDB Sep 19, 2021
Release note (sql change): Change the pgerror code XC instead of CD
for CockroachDB specific errors. This is because the "C" class is
reserved for the SQL standard. The pgcode `CDB00` used for
unsatisfiable bounded staleness is now `XCUBS`.
Copy link
Contributor Author

@otan otan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @knz and @rafiss)


pkg/sql/pgwire/pgcode/codes.go, line 383 at r1 (raw file):

Previously, knz (kena) wrote…

Classes are two characters. Make this "XC"

Done.


pkg/sql/pgwire/pgcode/codes.go, line 388 at r1 (raw file):

Previously, knz (kena) wrote…

"XCUBS"?

Done.

@otan otan requested a review from knz September 20, 2021 00:56
Copy link
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 2 files at r2, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @knz and @rafiss)

@otan
Copy link
Contributor Author

otan commented Sep 20, 2021

thanks for catching!

bors r=knz

@craig
Copy link
Contributor

craig bot commented Sep 20, 2021

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants