Hi All,
Ticket #10000 on the bug tracker has added a functionality and was
committed on release r22850.
It changes the having() method in Zend_Db_Select to allow us to pass the
optional third parameter which way the $value should be quoted.
The patch was :
- if (func_num_args()> 1) {
- $val = func_get_arg(1);
- $cond = $this->_adapter->quoteInto($cond, $val);
+ if ($value) {
+ $cond = $this->_adapter->quoteInto($cond, $value, $type);
}
My problem is that i can't pass a value which is considered as false (0,
an empty string) in the statement.
So i can't do :
$select->having("foo = ?", 0);
Is that a bug or should i haven't to use it like that?
Thanks,
Simon.