Skip to content

Commit

Permalink
Close cursors that are done.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Aug 17, 2014
1 parent edd85f5 commit ecadccc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Database/Schema/Collection.php
Expand Up @@ -119,12 +119,14 @@ public function describe($name, array $options = []) {
foreach ($statement->fetchAll('assoc') as $row) {
$this->_dialect->convertFieldDescription($table, $row);
}
$statement->closeCursor();

list($sql, $params) = $this->_dialect->describeIndexSql($name, $config);
$statement = $this->_executeSql($sql, $params);
foreach ($statement->fetchAll('assoc') as $row) {
$this->_dialect->convertIndexDescription($table, $row);
}
$statement->closeCursor();

list($sql, $params) = $this->_dialect->describeForeignKeySql($name, $config);
$statement = $this->_executeSql($sql, $params);
Expand Down

0 comments on commit ecadccc

Please sign in to comment.