Actions
Feature #17208
closedREPLACEquery
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2007-04-14
Due date:
% Done:
0%
Estimated time:
PHP Version:
4.3
Tags:
Complexity:
Sprint Focus:
Description
class t3lib_DB should have functions exec_REPLACEquery and REPLACEquery.
Example of usage:
class.t3lib_page.php:905
$GLOBALS['TYPO3_DB']->exec_DELETEquery('cache_hash', 'hash='.$GLOBALS['TYPO3_DB']->fullQuoteStr($hash, 'cache_hash'));
$GLOBALS['TYPO3_DB']->exec_INSERTquery('cache_hash', $insertFields);
should become:
$GLOBALS['TYPO3_DB']->exec_REPLACEquery('cache_hash', $insertFields);
Reference:
http://dev.mysql.com/doc/refman/5.0/en/replace.html
(issue imported from #M5423)
Updated by Martin Kutschker over 17 years ago
REPLACE is Mysql specifc. TYPO3 is supposed to run on other DBs as well, so this won't happen.
Actions