Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.10.5
-
Fix Version/s: 1.10.8
-
Component/s: Zend_Db_Select
-
Labels:None
Description
When using where(), you can pass the optional third parameter which way the $value should be quoted. This functionality is not available for having(). It would be nice to have it.
public function where($cond, $value = null, $type = null) vs public function having($cond) { if (func_num_args() > 1) { $val = func_get_arg(1); $cond = $this->_adapter->quoteInto($cond, $val); }
Workaround:
$cond = $this->getAdapter()->quoteInto('count >= ?', $minimalCount, Zend_Db::INT_TYPE);
$select->having($cond);
typo