Issues

ZF-11764: Bind variables lost when calling Zend_Db_Select->union()

Description

If you call Zend_Db_Select->union() with an array of Zend_Db_Select objects, any bind variables from those objects will not be copied over to the first select, resulting in an error when the union is executed. Tested in both release and in Subversion (r24460).

Comments

Here's a patch to fix this, complete with a test case: https://gist.github.com/1235429

p.s. could someone give me file attachment permissions? It does not seem I am able to attach files to tickets.

Only those who have signed a CLA can receive file attachment permissions. See here: http://framework.zend.com/wiki/display/…

I've reviewed your patch, and everything seems A-OK to me. The test you have provided passes, as does the whole {{Zend_Db}} test suite (excluding the normal fails I get back from the sqlite portion of {{Zend_Db}} on my system).