Skip to content

Avoid extra parenthesis around SQL in IN expressions - #36795

Merged
come-nc merged 1 commit into
masterfrom
fix/remove-erronous-parentheses-in-in-clause
Feb 21, 2023
Merged

Avoid extra parenthesis around SQL in IN expressions#36795
come-nc merged 1 commit into
masterfrom
fix/remove-erronous-parentheses-in-in-clause

Conversation

@come-nc

@come-nccome-nc commented Feb 21, 2023

Copy link
Copy Markdown
Contributor

Summary

The expression builder already suround the SQL with parenthesis when
using in(), so we must not add another pair, this confuses at least
sqlite.

Checklist

@come-nccome-nc added the 3. to review Waiting for reviews label Feb 21, 2023
@come-nccome-nc added this to the Nextcloud 26 milestone Feb 21, 2023
@come-nccome-nc self-assigned this Feb 21, 2023
@come-nc

Copy link
Copy Markdown
ContributorAuthor

Follow up of nextcloud/spreed#8220 (comment)

@come-nc

Copy link
Copy Markdown
ContributorAuthor

/backport to stable25

@come-nc

Copy link
Copy Markdown
ContributorAuthor

/backport to stable24

@come-nc
come-nc requested review from a team, ArtificialOwl, blizzz and icewind1991 and removed request for a teamFebruary 21, 2023 11:19
@come-nccome-nc added the bug label Feb 21, 2023
@come-nc

Copy link
Copy Markdown
ContributorAuthor

/rebase

The expression builder already suround the SQL with parenthesis when
using in(), so we must not add another pair, this confuses at least
sqlite.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@nextcloud-command
nextcloud-commandforce-pushed the fix/remove-erronous-parentheses-in-in-clause branch from 9319224 to 7481181CompareFebruary 21, 2023 13:37
@come-nc
come-nc merged commit 18c4761 into masterFeb 21, 2023
@come-nc
come-nc deleted the fix/remove-erronous-parentheses-in-in-clause branch February 21, 2023 16:37
@skjnldsvskjnldsv mentioned this pull request Feb 23, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsbug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Subquery inside IN must not use additional () on the createFunction() call or it breaks in SQLite

3 participants

@come-nc@nickvergessen@icewind1991