Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

"Too many SQL variables" while using In #988

Closed
jonasfranz opened this issue May 24, 2018 · 1 comment
Closed

"Too many SQL variables" while using In #988

jonasfranz opened this issue May 24, 2018 · 1 comment

Comments

@jonasfranz
Copy link

jonasfranz commented May 24, 2018

If you try to run a query with more than 999 SQL variables inside an In statement on a sqlite database it will return a too many SQL variables error. This is caused by limitations of sqlite documented here: https://www.sqlite.org/limits.html

The expected behaviour should be to split the query into sub-queries or something equivalent if the limit is exceeded.

Blocks go-gitea/gitea#4018

@lunny
Copy link
Member

lunny commented May 24, 2018

I think xorm could do nothing for that. Maybe gitea should use another way to do that.

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

No branches or pull requests

2 participants