Skip to content

pgcode: use XC instead of CDB#70347

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
otan-cockroach:codes
Sep 20, 2021
Merged

pgcode: use XC instead of CDB#70347
craig[bot] merged 1 commit intocockroachdb:masterfrom
otan-cockroach:codes

Conversation

@otan
Copy link
Copy Markdown
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
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

otan commented Sep 20, 2021

thanks for catching!

bors r=knz

@craig
Copy link
Copy Markdown
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