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

pgwire: lazily populate second timezone offset #57265

Merged
merged 1 commit into from Dec 1, 2020

Conversation

otan
Copy link
Contributor

@otan otan commented Nov 30, 2020

Looks like #55071 was too greedy -- looks like (at the very least)
pgjdbc expects the second offset to only be displayed if there is a
second offset. It's easy to do, so I have done so.

Fixed TimeTZ along the way.

Refs #57168

Release note (bug fix): Second timezone offsets for TimeTZ now
correctly display over the postgres wire protocol - these were
previously omitted.

Release note (bug fix): Second timezone offsets are only displayed in
the postgres wire protocol for TimestampTZ values. In an earlier patch
for v21.1, this would always display.

Looks like cockroachdb#55071 was too greedy -- looks like (at the very least)
pgjdbc expects the second offset to only be displayed if there is a
second offset. It's easy to do, so I have done so.

Fixed TimeTZ along the way.

Release note (bug fix): Second timezone offsets for TimeTZ now
correctly display over the postgres wire protocol - these were
previously omitted.

Release note (bug fix): Second timezone offsets are only displayed in
the postgres wire protocol for TimestampTZ values. In an earlier patch
for v21.1, this would always display.
@otan otan requested review from rafiss and a team November 30, 2020 23:24
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@otan
Copy link
Contributor Author

otan commented Dec 1, 2020

bors r=rafiss

@craig
Copy link
Contributor

craig bot commented Dec 1, 2020

Build succeeded:

@craig craig bot merged commit 4e28ca3 into cockroachdb:master Dec 1, 2020
rafiss added a commit to rafiss/cockroach that referenced this pull request May 12, 2021
Similar to cockroachdb#57265, this commit matches the PG behavior to
only show the minutes offset if it is non-zero.

Release note (bug fix): Minute timezone offsets are only displayed in
the wire protocol if they are non-zero for TimestampTZ and TimeTZ values.
Previously, they would always display.

Release note (bug fix): Binary TimeTZ values were not being decoded
correctly when being sent as a parameter in the wire protocol. This
is now fixed.
rafiss added a commit to rafiss/cockroach that referenced this pull request May 12, 2021
Similar to cockroachdb#57265, this commit matches the PG behavior to
only show the minutes offset if it is non-zero.

Release note (bug fix): Minute timezone offsets are only displayed in
the wire protocol if they are non-zero for TimestampTZ and TimeTZ values.
Previously, they would always display.

Release note (bug fix): Binary TimeTZ values were not being decoded
correctly when being sent as a parameter in the wire protocol. This
is now fixed.
craig bot pushed a commit that referenced this pull request May 17, 2021
65063: pgwire: only show TZ minutes offset if non-zero r=otan a=rafiss

Similar to #57265, this commit matches the PG behavior to
only show the minutes offset if it is non-zero.

Release note (bug fix): Minute timezone offsets are only displayed in
the wire protocol if they are non-zero for TimestampTZ and TimeTZ values.
Previously, they would always display.

Release note (bug fix): Binary TimeTZ values were not being decoded
correctly when being sent as a parameter in the wire protocol. This
is now fixed.

Release note (cli change): The SQL shell now formats times with time
zones so that the minutes and seconds offsets are only shown if they are
non-zero. Also, infinite floating point values are formatted as
`Infinity` rather than `Inf` now.

Co-authored-by: Rafi Shamim <rafi@cockroachlabs.com>
rafiss added a commit to rafiss/cockroach that referenced this pull request May 17, 2021
Similar to cockroachdb#57265, this commit matches the PG behavior to
only show the minutes offset if it is non-zero.

Release note (bug fix): Minute timezone offsets are only displayed in
the wire protocol if they are non-zero for TimestampTZ and TimeTZ values.
Previously, they would always display.

Release note (bug fix): Binary TimeTZ values were not being decoded
correctly when being sent as a parameter in the wire protocol. This
is now fixed.
knz pushed a commit to knz/cockroach that referenced this pull request Jun 8, 2021
Similar to cockroachdb#57265, this commit matches the PG behavior to
only show the minutes offset if it is non-zero.

Release note (bug fix): Minute timezone offsets are only displayed in
the wire protocol if they are non-zero for TimestampTZ and TimeTZ values.
Previously, they would always display.

Release note (bug fix): Binary TimeTZ values were not being decoded
correctly when being sent as a parameter in the wire protocol. This
is now fixed.
knz pushed a commit to knz/cockroach that referenced this pull request Jul 22, 2021
Similar to cockroachdb#57265, this commit matches the PG behavior to
only show the minutes offset if it is non-zero.

Release note (bug fix): Minute timezone offsets are only displayed in
the wire protocol if they are non-zero for TimestampTZ and TimeTZ values.
Previously, they would always display.

Release note (bug fix): Binary TimeTZ values were not being decoded
correctly when being sent as a parameter in the wire protocol. This
is now fixed.
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.

None yet

3 participants