-
Notifications
You must be signed in to change notification settings - Fork 64
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
Fix DB::ColumnTypeMismatchError
for Int32
columns in CockroachDB
#920
Conversation
Fixes luckyframework#919 ``` In PG::ResultSet#read the column one returned a Int64 but a Int32 was expected. (DB::ColumnTypeMismatchError) from lib/db/src/db/result_set.cr:89:9 in 'read' from lib/db/src/db/query_methods.cr:202:9 in 'query_one?:as:args' from lib/avram/src/avram/database.cr:88:3 in 'query_one?:as:args:queryable' from lib/avram/src/avram/database.cr:88:3 in 'query_one?:args:queryable:as' from lib/avram/src/avram/queryable.cr:224:17 in 'any?' # ... ```
Don't merge yet. I would like to confirm first that this works on CockroachDB... |
My bad, but this was actually fixed in #900. I'm running the same tests against Avram master, and the issue does not exist. So this PR is not really necessary. You may still merge, though, to forestall any surprises in future. |
Ah, cool. That's good then. I'm trying to get another release out, but still hung up on a few things. Looking at the pg docs, it seems they're just aliases, but maybe using |
I assume those specs are all passing with this? Do you think we need to change |
It would be great if we could just use CockroachDB in the CI specs. Looks like it may not be possible just yet? cockroachdb/cockroach#87043 |
No, its just |
Yeah, I was thinking same, but I wasn't sure. That should help a lot. |
There's still one last issue with
I'm pushing that as a separate PR. |
Fixes #919
There's no specs, though; can't think of any.