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

Binary cursor field #134

Open
ThingsIDoForLove opened this issue Aug 29, 2021 · 1 comment
Open

Binary cursor field #134

ThingsIDoForLove opened this issue Aug 29, 2021 · 1 comment

Comments

@ThingsIDoForLove
Copy link

I am using UUID as the primary key and choosing [:inserted_at, :id] as cursor fields.
it successfully gets encode/decode. but while executing in Postgres it produces the following error.

(DBConnection.EncodeError) Postgrex expected a binary of 16 bytes, got "6f99aeef-a057-4562-8ef6-d35e310b3593". Please make sure the value you are passing matches the definition in your table or in your query or convert the value accordingly.

so is there a workaround for this? maybe someway to customize cursor encode/decode

@sgerrand
Copy link
Contributor

So that we understand your problem in a little bit more detail, are you able to provide a working example of your issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants