Repository navigation
Conversation
aloucks
force-pushed
the
version-i64-master
branch
from
February 8, 2020 19:52
015f9ad to
28cac7a
Compare
CockroachDB defaults `INT` fields to `INT8` (64bit), which differs from the postgres behavior. The rust postgres driver panics when fetching the version number with the following message: error retrieving column 0: error deserializing column 0: cannot convert between the Rust type `i32` and the Postgres type `int8` Using `i64` instead of `i32` resolves the issue.
aloucks
force-pushed
the
version-i64-master
branch
from
February 8, 2020 19:55
28cac7a to
9cbb659
Compare
Collaborator
|
Wouldn’t it be better to use |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CockroachDB defaults
INTfields toINT8(64bit), which differs from the postgres behavior. The rust postgres driver panics when fetching the version number with the following message:Using
i64instead ofi32resolves the issue.