[TYPO3-dev] Should t3lib_db support MySQL's REPLACE INTO statement?

Ingo Renner ingo at typo3.org
Thu Nov 13 21:35:41 CET 2008


Ingo Renner wrote:

> would you be interested to see a 
> $GLOBALS['TYPO3_DB']->exec_REPLACEquery() method?

I'd say let's forget about it, there are in fact some serious issues 
with the REPLACE statement.
I got the idea for it when working on a round-robin database storage but 
figured that a simple INSERT ... ON DUPLICATE KEY UPDATE will do.

However there's no way yet to do that either with t3lib_db (yet), except 
for using sql_query of course...


Ingo

-- 
Ingo Renner
TYPO3 Core Developer, Release Manager TYPO3 4.2




More information about the TYPO3-dev mailing list