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

Misplaced params when using windows or subqueries #351

Open
KyleSanderson opened this issue Dec 31, 2022 · 1 comment
Open

Misplaced params when using windows or subqueries #351

KyleSanderson opened this issue Dec 31, 2022 · 1 comment

Comments

@KyleSanderson
Copy link

hi Team,

We've been using Squirrel for a while now and (frankly) love it. The thing we're coming up against is there's not a lot of great support for subqueries. We're using sq.Alias to give a Window on a Column, but when params are passed in Squirrel seems to place them using the initial index despite passing Expr's around in what looks like a supported fashion.

We've had to revert a code change that we found in testing here: autobrr/autobrr#599

This also seems to go wrong when using the WHERE IN clause, but admittedly that seems to be less supported (although greatly desired).

Thoughts, directions, patches for us to test are greatly appreciated.

@lann
Copy link
Member

lann commented Jan 3, 2023

Could you give an example?

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