Issues

ZF2-262: Zend\Db\Adapter\Driver\Mysqli\Result Iterator implementation mangled

Issue Type: Bug Created: 2012-04-12T12:53:35.000+0000 Last Updated: 2012-06-14T21:17:41.000+0000 Status: Resolved Fix version(s): Reporter: Martin Hujer (mhujer) Assignee: Ralph Schindler (ralph) Tags: - Zend\Db

Related issues: - ZF2-281

Attachments:

Description

When I try to do

<pre class="highlight">
$result = $this->getAdapter()->query($sql)->execute();

$result instanceof \Iterator; //bool(true)
count($result); //0
count(iterator_to_array($result)) //5

Therefore, Zend\Paginator does not work even when using Iterator adapter.

Comments

Posted by Duccio Gasparri (dgasparri) on 2012-05-12T01:57:21.000+0000

This appears to be a clone of [ZF2-281] http://framework.zend.com/issues/browse/ZF2-281 (they both depend on the Result & ResultSet Iterator)

Proposed git pull https://github.com/zendframework/zf2/pull/1201 (commit https://github.com/dgasparri/zf2-testserver/… )

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts