Issue Bug Closed

#23834UPDATE queries fails for $GLOBALS['TYPO3_DB']->sql_query

Oguzhan Alan 10/24/10, 15:28 updated 01/31/11, 16:09

Description

UPDATE queries fails for $GLOBALS[‘TYPO3_DB’]->sql_query when dbal is installed, look at typo3/sysext/dbal/class.ux_t3lib_db.php
LINE 834
foreach ($components[‘FIELDS’] as $fN => $fV) {

SHOULD BE

foreach ($queryParts[‘FIELDS’] as $fN => $fV) {

as $components[‘FIELDS’] is not defined/empty here, should be $queryParts[‘FIELDS’]

In case of UPDATE queries $GLOBALS[‘TYPO3_DB’]->sql_query the query is broken because the fields are empty, so UPDATE queries do not work using DBAL in case of native configuration
(issue imported from #M16120)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.