[BUGFIX] Use correct database connection for table in ReferenceIndex 44/53144/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:46:55 +0000 (20:46 +0200)
commitf8b4a740781090054ca49607b9846cf868531ca1
treee7d3ae2194e0b139477a4a94cff15aa7ee06ac98
parentc82cb57bf0c829096ba50bf4da839c30ff1ac09f
[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/53144
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Database/ReferenceIndex.php