Skip to content

Conversation

@backportbot-nextcloud
Copy link

backport of #23937

// delete the folder without removing the children
$query = \OC::$server->getDatabaseConnection()->getQueryBuilder();
$query->delete('filecache')
->where($query->expr()->eq('fileid', $query->createNamedParameter($oldFolderId)));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could it ever be an issue that we don't explicitly specify a type here? because by default it will assume the parameter to be a string

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be better to specify it to avoid passing in wrong type, but in that direction it seem to work just fine. Then the DB casts it to whatever type it is.

But I would like to fix this then in master first.

@rullzer rullzer mentioned this pull request Nov 10, 2020
@MorrisJobke MorrisJobke merged commit 73c2ad2 into stable20 Nov 10, 2020
@MorrisJobke MorrisJobke deleted the backport/23937/stable20 branch November 10, 2020 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants