[BUGFIX] DBAL's quoteFieldNames() returns an empty string 64/27864/10
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 26 Feb 2014 16:20:51 +0000 (17:20 +0100)
committerMarkus Klein <klein.t3@mfc-linz.at>
Tue, 4 Mar 2014 14:11:03 +0000 (15:11 +0100)
commit5991c19caefbccd18414d92aba6fabb002127f1e
tree77c88e4d2f84c7dde8638735fd408ba39fd9632f
parent5bb821a46553a6633f8d42ba0c1848debe8cb93b
[BUGFIX] DBAL's quoteFieldNames() returns an empty string

DBAL's DatabaseConnection::INSERTquery() builds an array. The keys
(fields) are mapped through quoteFieldNames(), which returns an empty
string. DBAL's SqlParser tries to use $GLOBALS['TYPO3_DB'], which is
not available here.

Resolves: #56306
Releases: 6.2
Change-Id: I97eff8f796fcb8d530d16ff5f6111ebd5d28d5ce
Reviewed-on: https://review.typo3.org/27864
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/core/Classes/Database/SqlParser.php
typo3/sysext/dbal/Classes/Database/DatabaseConnection.php
typo3/sysext/dbal/Classes/Database/SqlParser.php
typo3/sysext/dbal/Tests/Unit/Database/DatabaseConnectionMssqlTest.php
typo3/sysext/dbal/Tests/Unit/Database/DatabaseConnectionOracleTest.php
typo3/sysext/dbal/Tests/Unit/Database/DatabaseConnectionPostgresqlTest.php
typo3/sysext/dbal/Tests/Unit/Database/DatabaseConnectionTest.php
typo3/sysext/dbal/Tests/Unit/Database/SqlParserTest.php