Project

General

Profile

Actions

Bug #23834

closed

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

Added by Oguzhan Alan about 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2010-10-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Files

16120.diff (540 Bytes) 16120.diff Administrator Admin, 2010-10-30 11:05
Actions

Also available in: Atom PDF