[BUGFIX] Respect table mapping on caching 74/27874/8
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 26 Feb 2014 15:51:37 +0000 (16:51 +0100)
committerXavier Perseguers <xavier@typo3.org>
Tue, 18 Mar 2014 15:25:51 +0000 (16:25 +0100)
commit257dfba5f4eca75a0ecf3f5717b11253c3f58858
tree63b8b4367eeeba3a9dd9dd10e8311b6b5c79f48e
parenta51dfbab6ec5c54edc73e6633eb2d6481b03981f
[BUGFIX] Respect table mapping on caching

The method analyzeFields() of DBAL's DatabaseConnection caches the
table structure. The cache always uses the real table name, ignoring
any mapping, which results in a RuntimeException:

"Could not update BLOB >>>> no WHERE clause found!"

The method now checks for a possible mapping and sets the alias
as table name.

Resolves: #56349
Releases: 6.2
Change-Id: I9599cebc8604103c3749bc142cd44b813f018a72
Reviewed-on: https://review.typo3.org/27874
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
typo3/sysext/dbal/Classes/Database/DatabaseConnection.php