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

Fetch migration version as i64 instead of i32 #48

Closed
wants to merge 1 commit into from

Conversation

aloucks
Copy link
Contributor

@aloucks aloucks commented Feb 8, 2020

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.

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.
@akhilles
Copy link
Collaborator

akhilles commented Feb 8, 2020

Wouldn’t it be better to use INT4 in the refinery_schema_history table?

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

2 participants