On Monday 21 September 2009 10:29:59 pm william0275 wrote:
> I just noticed this and wasted some time trying to debug my code until I
> found this bug in the documentation. I'm not sure why and how they added
> this change.

hello, the API docs are wrong about how union works. It has to be used:

$selectA = $db->select()->...;
$selectB = $db->select()->...;

$unionSelect = $db->select()->union(array($selectA, $selectB));

the docs where changed only recently on this issue, so expect this problem to 
be vanished in 1.9.3, aswell as this absurd bug you mentioned.

greetings,
Benjamin

-- 
Benjamin Eberlei
http://www.beberlei.de

Reply via email to