ZF-6894: Incompatibile Zend_Db::delete() behavior when string array key is used in where condition
There is an unexpected behavior / critical incompatibility using delete method of Zend_Db. When parameter $where is an array('article_id' => 'article_id=123') whole table is emptied instead of deleting a single record with an article_id=123.
$where = array('article_id' => 'article_id=123'); $this->db->delete('MY_TABLE', $where);
ZF 1.7.8: row with article_id=123 is deleted ZF 1.8.2: result: MY_TABLE is emptied
The behavior is caused by the 'string' array key. If numeric key is used the problem is avoid.