ZF-7669: Zend_Test_DbAdapter supportsParameters() returns false causing exception when testing code that uses update()

Issue Type: Improvement Created: 2009-08-24T03:41:12.000+0000 Last Updated: 2009-08-27T23:49:19.000+0000 Status: Resolved Fix version(s): - 1.9.3 (22/Sep/09)

Reporter: Kevin Foster (kevinfoster) Assignee: Benjamin Eberlei (beberlei) Tags: - Zend_Test_PHPUnit

Related issues: Attachments:


Zend_Test_DbAdapter supportsParameters() always returns false making it impossible to test code that uses the update() method with bind parameters.

<pre class="highlight">
$dbAdapter = new Zend_Test_DbAdapter();
$dbAdapter->update('table', array('field' => 'value'), 'table_id = 5');

The above code will throw the exception: {color:red} Zend_Db_Adapter_Exception: Zend_Test_DbAdapter doesn't support positional or named binding{color}

I think it would make more sense to have supportsParameters() return true.


Posted by Benjamin Eberlei (beberlei) on 2009-08-27T23:49:09.000+0000

Fixed and merged into 1.9 release branch.

Have you found an issue?

See the Overview section for more details.


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

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