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

types: make WithoutTypeModifier less error prone #75839

Merged
merged 1 commit into from
Feb 3, 2022

Conversation

otan
Copy link
Contributor

@otan otan commented Feb 2, 2022

WithoutTypeModifier previously did not zero out geometry/geography
correctly, causing a bug in active record (which I cannot reproduce
easily with a test). Nonetheless, this commit fixes that and makes
future types less prone to errors when using WithoutTypeModifier.

Release note: None

WithoutTypeModifier previously did not zero out geometry/geography
correctly, causing a bug in active record (which I cannot reproduce
easily with a test). Nonetheless, this commit fixes that and makes
future types less prone to errors when using `WithoutTypeModifier`.

Release note: None
@otan otan requested a review from mgartner February 2, 2022 01:13
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@mgartner mgartner left a comment

Choose a reason for hiding this comment

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

Thanks for improving this! :lgtm:

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


pkg/sql/types/types_test.go, line 1031 at r1 (raw file):

	for _, tc := range testCases {
		t.Run(tc.t.SQLString(), func(t *testing.T) {

yikes 😬 was this not even running before?

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.

bors r=mgartner

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @mgartner)


pkg/sql/types/types_test.go, line 1031 at r1 (raw file):

Previously, mgartner (Marcus Gartner) wrote…

yikes 😬 was this not even running before?

oh it was, this just splits it out into subtests so it was easier to figure out what i broke

@craig
Copy link
Contributor

craig bot commented Feb 2, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Feb 3, 2022

Build succeeded:

@craig craig bot merged commit a950be5 into cockroachdb:master Feb 3, 2022
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