[BUGFIX] Use correct database connection for table in ReferenceIndex 31/53131/2
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Tue, 6 Jun 2017 03:55:38 +0000 (20:55 -0700)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 6 Jun 2017 18:34:57 +0000 (20:34 +0200)
commit2da4e3d2b3b094b92b277a3365beadeab81c0974
tree6bfa3841e9d038f2ad4e774653b3722e613e161a
parent52389bdbf3b1845bd69f13b5e2cf4553bcb4da2d
[BUGFIX] Use correct database connection for table in ReferenceIndex

Reusing the connection object for the sys_refindex table can fail
if the table that is being indexed is actually on another connection.
Select the proper connection before attempting to execute the query.

Change-Id: I4c031428f7405031aea6ef652c8b6f488f921228
Resolves: #81049
Releases: master, 8.7
Reviewed-on: https://review.typo3.org/53131
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Henrik Elsner <helsner@dfau.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Database/ReferenceIndex.php