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

release-19.1: pgwire: fix decimal decoding with trailing zeroes #45671

Merged
merged 1 commit into from
Mar 4, 2020

Conversation

otan
Copy link
Contributor

@otan otan commented Mar 3, 2020

Backport 1/1 commits from #45613.

/cc @cockroachdb/release


Resolves #25460

In addition to the release note, I have also modified the docker runfile
to support elixir tests, and also updated the elixir tests to be run.

Release note (bug fix): In previous PRs, drivers that do not truncate
trailing zeroes for decimals in the binary format end up having
inaccuracies of up to 10^4 during the decode step. In this PR, we fix
the error by truncating the trailing zeroes as appropriate. This fixes
known incorrect decoding cases with Postgrex in Elixir.

@otan otan requested review from jordanlewis and a team March 3, 2020 21:44
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@otan otan force-pushed the backport19.1-45613 branch from aa47cb8 to 261b000 Compare March 3, 2020 22:44
In addition to the release note, I have also modified the docker runfile
to support elixir tests, and also updated the elixir tests to be run.

Release note (bug fix): In previous PRs, drivers that do not truncate
trailing zeroes for decimals in the binary format end up having
inaccuracies of up to 10^4 during the decode step. In this PR, we fix
the error by truncating the trailing zeroes as appropriate. This fixes
known incorrect decoding cases with Postgrex in Elixir.
@otan otan force-pushed the backport19.1-45613 branch from 261b000 to 3e7a5bb Compare March 4, 2020 00:30
Copy link
Member

@jordanlewis jordanlewis left a comment

Choose a reason for hiding this comment

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

:lgtm:

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

@otan otan merged commit f19baa3 into cockroachdb:release-19.1 Mar 4, 2020
Dedej-Bergin pushed a commit to Dedej-Bergin/cockroach that referenced this pull request Dec 19, 2024
…ented.go

Moved files with unimplemented stubs into just 1 file unimplemented.go.
These unimplemented stubs work in DSC only and we will not implement
them on the legacy schema changer.

Fixes: cockroachdb#45671
Release note: none
Dedej-Bergin pushed a commit to Dedej-Bergin/cockroach that referenced this pull request Dec 19, 2024
…ented.go

Moved files with unimplemented stubs into just 1 file unimplemented.go.
These unimplemented stubs work in DSC only and we will not implement
them on the legacy schema changer.

Fixes: cockroachdb#45671
Release note: none
Dedej-Bergin pushed a commit to Dedej-Bergin/cockroach that referenced this pull request Dec 19, 2024
…ented.go

Moved files with unimplemented stubs into just 1 file unimplemented.go.
These unimplemented stubs work in DSC only and we will not implement
them on the legacy schema changer.

Fixes: cockroachdb#45671
Release note: none
Dedej-Bergin pushed a commit to Dedej-Bergin/cockroach that referenced this pull request Dec 19, 2024
…ented.go

Moved files with unimplemented stubs into just 1 file unimplemented.go.
These unimplemented stubs work in DSC only and we will not implement
them on the legacy schema changer.

Fixes: cockroachdb#45671
Release note: none
craig bot pushed a commit that referenced this pull request Dec 19, 2024
137795: sql: refactor unimplemented statements into one file pkg/sql/unimplem… r=Dedej-Bergin a=Dedej-Bergin

…ented.go

Moved files with unimplemented stubs into just 1 file unimplemented.go. These unimplemented stubs work in DSC only and we will not implement them on the legacy schema changer.

Fixes: #45671
Release note: none

Co-authored-by: Bergin Dedej <bergin.dedej@cockroachlab.com>
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