Zend\Db\Sql\Select getSqlString() #2545 issue in 2.0.7 #3911
Comments
in \Zend\Db\Sql\Select function processLimit if ($adapter) {
...
} else {
$sql = $platform->quoteValue($this->limit);
} There is the problem. The platform is in this present case \Zend\Db\Adapter\Platform\Mysql() so it should not quote a limit. Same problem in processOffset |
Ok... in the same way. $select->from('foo')->where(array('y = z')); as example in the zf2 doc return SELECT `foo`.* FROM `foo` WHERE y = z without quoting neither y or z ! $select->from('foo')->where(array('y' => 'z')); works well Seems like the array('z <= p') style doesn't work. |
Hi bouks, $select->form('foo')->where(array('y = z')); in this case your predicate is a literal expression. To me it's perfectly valid that nothing is quoted. Example: $where = new Predicate();
$where->equalTo('y', 'z');
// ...
$select->where($where); |
Hi tux. Thank you for answer. I'm using predicates and array('key' => $val). limit and offset bug still open. :) |
@bouks does this bug still exists? |
Fixed in #2775 |
Hi.
prints me :
The text was updated successfully, but these errors were encountered: