ZF-6565: Zend_Db should implement the REPLACE INTO extension with a replaceInto() function

Issue Type: New Feature Created: 2009-05-06T23:28:22.000+0000 Last Updated: 2012-11-20T20:53:39.000+0000 Status: Closed Fix version(s): Reporter: Mark (lightflowmark) Assignee: None Tags: - Zend_Db

Related issues: Attachments:


MySQLs proprietary REPLACE INTO syntax is a useful one allowing elegant code in certain circumstances.

This attempts to deletes the row, and then performs an insert. Implementing it in Zend_Db would allow users of other RDMS brands to use this also; I see this as akin to Dojo's philosophy of smoothing out differences between browsers by providing a standard interface to them.

Implementing the ON DUPLICATE UPDATE functionality as outlined in ZF-266 (attempting the insert and then performing an update on exception) would also be a good solution


Posted by Rob Allen (rob) on 2012-11-20T20:53:39.000+0000

Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".

Feel free to re-open and provide a patch if you want to fix this issue.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.