Skip to content

Commit

Permalink
Fix implementation of BufferedStatement
Browse files Browse the repository at this point in the history
Implement the Iterator interface directly. This allows the statement to
actually buffer results between iterations. It also solves the pierce
through problems that arise when statements are used with Collection.
  • Loading branch information
markstory committed May 25, 2018
1 parent 5d96beb commit 35dcf38
Show file tree
Hide file tree
Showing 6 changed files with 277 additions and 86 deletions.
5 changes: 3 additions & 2 deletions src/Database/Schema/SqliteSchema.php
Expand Up @@ -507,8 +507,9 @@ public function truncateTableSql(TableSchema $schema)
*/
public function hasSequences()
{
$result = $this->_driver
->prepare('SELECT 1 FROM sqlite_master WHERE name = "sqlite_sequence"');
$result = $this->_driver->prepare(
'SELECT 1 FROM sqlite_master WHERE name = "sqlite_sequence"'
);
$result->execute();
$this->_hasSequences = (bool)$result->rowCount();
$result->closeCursor();
Expand Down

0 comments on commit 35dcf38

Please sign in to comment.