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

[postgres] Type name for custom enum is not always attached to TypeInfo #241

Closed
Celti opened this issue Apr 8, 2020 · 2 comments
Closed
Labels
bug db:postgres Related to PostgreSQL

Comments

@Celti
Copy link

Celti commented Apr 8, 2020

This leads to errors like "mismatched types; Rust type `eris::db::ActivityKind` (as SQL type activity_kind) is not compatible with SQL type " with the following types.

Minimal reproduction: https://gist.github.com/Celti/7a9bc788ace5620825096961ce88ab70
This is with sqlx 0.3.3 and postgres 12.2.

@mehcode mehcode added bug db:postgres Related to PostgreSQL labels Apr 10, 2020
@mehcode
Copy link
Member

mehcode commented Apr 10, 2020

Thanks for the report and the reproduction @Celti

Can you check master to see if it works for you?

@Celti
Copy link
Author

Celti commented Apr 10, 2020

Works like a charm! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug db:postgres Related to PostgreSQL
Projects
None yet
Development

No branches or pull requests

2 participants