pilagod / gorm-cursor-paginator

A paginator doing cursor-based pagination based on GORM
https://github.com/pilagod/gorm-cursor-paginator
MIT License
188 stars 44 forks source link

Setting 3 or more keys generates a wrong cursor query #21

Closed mchaisse closed 4 years ago

mchaisse commented 4 years ago

Hi @pilagod !

We are running into an issue where the getCursorQuery function seem to generate the appropriate query for 1 or 2 keys, but seem to generate a confusing query with 3 or more keys.

Here is an example with 3 columns.

What do you think?

mchaisse commented 4 years ago

Actually I realized the query I mentioned was not solving the issue neither. I will close the issue and reopen if I find some more info.