#17208REPLACEquery
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)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.