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

sql: fix DIPAddr serialization issue #26086

Merged
merged 1 commit into from
May 25, 2018

Conversation

RaduBerinde
Copy link
Member

@RaduBerinde RaduBerinde commented May 25, 2018

Correcting DIPAddr.AmbiguousFormat to be true, i.e. that type
annotations are necessary when serializing the datum (e.g. for
DistSQL). Without it, the value is parsed as a string.

Release note (bug fix): Fixed an error caused by INET constants in
some rare cases.

@RaduBerinde RaduBerinde requested review from knz, andy-kimball and a team May 25, 2018 12:19
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@knz
Copy link
Contributor

knz commented May 25, 2018

Change LGTM.
But: isn't this a bug fix that would cause queries to previously fail? If so a release note and a logic test may be warranted.


Reviewed 2 of 2 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved, all commit checks successful.


Comments from Reviewable

Correcting `DIPAddr.AmbiguousFormat` to be true, i.e. that type
annotations are necessary when serializing the datum (e.g. for
DistSQL). Without it, the value is parsed as a string.

Release note (bug fix): Fixed an error caused by INET constants in
some rare cases.
@RaduBerinde
Copy link
Member Author

Indeed, thanks. I conjured up a testcase that failed before.

@RaduBerinde
Copy link
Member Author

bors r+

craig bot pushed a commit that referenced this pull request May 25, 2018
26086: sql: fix DIPAddr serialization issue r=RaduBerinde a=RaduBerinde

Correcting `DIPAddr.AmbiguousFormat` to be true, i.e. that type
annotations are necessary when serializing the datum (e.g. for
DistSQL). Without it, the value is parsed as a string.

Release note (bug fix): Fixed an error caused by INET constants in
some rare cases.

Co-authored-by: Radu Berinde <radu@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented May 25, 2018

Build succeeded

@craig craig bot merged commit 55c5749 into cockroachdb:master May 25, 2018
@RaduBerinde RaduBerinde deleted the ipaddr-serialization branch May 25, 2018 22:20
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