Issues

ZF-5868: Query parameters not recorded from Zend_Db_Statement_Pdo::bindValue()

Description

When using the Zend_Db_Statement_Pdo::bindValue() method, which overrides Zend_Db_Statement::bindValue(), the $_bindParam array never has the parameter and its value added.

I'm attaching a single-line patch here to fix the issue. If Zend_Db_Statement::bindValue() weren't being overridden in Zend_Db_Statement_Pdo, this wouldn't have been a problem.

My primary use case is that, when using Zend_Db_Profiler_Firebug, the bound parameters are showing up as NULL in the table, even though parameters were passed.

I first saw this on 1.7.1, but it's probably existed for quite some time. The attached patch file is against 1.7.5, though. I've got SVN access -- can I just commit this change myself?

Comments

Correction, the patch file I'm submitting will be against trunk.

Patch file for library/Zend/Db/Statement/Pdo.php at trunk's r14150.

Fixed in r18078 in trunk and r18079 in branch release 1.9