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

i64 support for MySQL #787

Closed
diggyk opened this Issue Mar 9, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@diggyk

diggyk commented Mar 9, 2017

I'm using 0.11.4 and am having issues with the MySQL support. I saw that Timestamp is currently not supported as Insertable but I can't even represent my timestamp as i64 because that too looks unsupported:

38 | #[derive(Insertable)] | ^^^^^^^^^^ the trait diesel::Expressionis not implemented fori64| = note: required because of the requirements on the impl ofdiesel::Expressionfor&'a i64 = note: this error originates in a macro outside of the current crate

@diggyk

This comment has been minimized.

diggyk commented Mar 9, 2017

Looks like the issue I was having is that I was using int(20) instead of "bigint" in my table definition. And when using infer_schema, bigint looks for a type of Bigint, which doesn't exist. Anyway, I use the table macro instead of inferring and everything works (except timestamp)

@sgrif sgrif closed this in aaab1ed Mar 9, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment