-
Notifications
You must be signed in to change notification settings - Fork 50
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
paging doesn't work with custom types in ordering #6
Comments
Hi there, thanks for filing this issue! As you suggest, the type conversion is getting skipped for some reason. Something in the query manipulation in Unfortunately I'm super busy right now and don't have the time to dig into this further and fix it up. However if you want to fix it and send a pull request, I'd be delighted to receive it! It would also be cool to hear more about how you're using |
This is most of the fix for djrobstep#6.
This is most of the fix for djrobstep#6.
This is most of the fix for djrobstep#6.
This is most of the fix for djrobstep#6.
This is most of the fix for djrobstep#6.
This is most of the fix for djrobstep#6.
We're using SQLAlchemyUtils' ArrowType for representing datetime fields in our models (as opposed to plain Python datetimes). This works fine with the rest of SQLAlchemy, but seems to cause problems with sqlakeyset when a column with this type is used in an ordering clause.
In particular, here's a simple example that fails:
I'm not entirely sure how custom types like ArrowType work, but it looks like the type conversion that typically happens is skipped here, and as a result the lower-level psycopg2 library doesn't know what to do with this type.
Any idea how to fix this?
The text was updated successfully, but these errors were encountered: