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

sqlbuilder generates multiple "limit" and "offset" clause when invoke ToSqlBuilder multiple times #433

Open
HengzheLi opened this issue Mar 21, 2022 · 1 comment · Fixed by #490

Comments

@HengzheLi
Copy link
Contributor

I use postgres dialect sqlbuilder to generate customized sql. The .Skip() and .Take() is used in my sqlbuilder and found that a new "limit" and "offset" clause is generated as long as .ToSqlBuilder been invoked. If I invoke .ToSqlBuilder twice, there will be two paires of "limit" and "offset". If I invoke .ToSqlBuilder() three times. There will be three pares.

@hishamco
Copy link
Contributor

Seems it's a bug, I may fix this if I have a time, it's long time from contributing in YesSQL ;)

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

Successfully merging a pull request may close this issue.

3 participants