Skip to content
Snippets Groups Projects
Commit fdff96dd authored by Stefan Bürk's avatar Stefan Bürk Committed by Christian Kuhn
Browse files

[BUGFIX] Mitigate MySQL limitations in `ReferenceIndex`

With #102171 a sub-query is used to fetch the records
to delete. We missed two things:

* Placeholders in the sub-query need to use the 'parent'
  QueryBuilder instance.

* MySQL is picky and disallows using the same table from
  the delete query in a sub-query, at least not directly.

This change adds an additional, chunked query to the mix,
to mitigate picky MySQL and takes care of correct
placeholder handling.

Resolves: #102175
Related: #102171
Releases: main
Change-Id: I52684537952b6e0a331541ca88b212ce19bf2455
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81434


Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarGarvin Hicking <gh@faktor-e.de>
Tested-by: default avatarGarvin Hicking <gh@faktor-e.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent 0d6719c5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment