Fix error: UNION types text and bigint cannot be matched - #1
Conversation
|
I'm testing it with postgresql and I'm getting error UNION types text and bigint cannot be matched when selecting multiple fields. Casting null to bigint for id and timestamp for order works. However, it breaks custom ordering, if not all of the order columns are timestamps, resulting in error: COALESCE types text and timestamp without time zone cannot be matched. That means, only timestamp columns may be used in orderBy, as it is in example. |
|
Thanks for the PR. This is a long-standing issue that I'd be very happy to solve. |
|
Oh yes, I got it. It's a bit more tricky to make it working for all database systems. |
|
Yes, it's tricky, unfortunately. But I'd be interested in which exact scenario the code in this PR solved? |
No description provided.