Project

General

Profile

Actions

Feature #17208

closed

REPLACEquery

Added by John Angel over 17 years ago. Updated over 16 years ago.

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)

Actions

Also available in: Atom PDF