You are here

public function QPDB::doneWithQuery in QueryPath 6

Same name and namespace in other branches
  1. 7.3 QueryPath/Extension/QPDB.php \QPDB::doneWithQuery()
  2. 7.2 QueryPath/Extension/QPDB.php \QPDB::doneWithQuery()
1 call to QPDB::doneWithQuery()
QPDB::addData in QueryPath/Extension/QPDB.php

File

QueryPath/Extension/QPDB.php, line 87

Class

QPDB

Code

public function doneWithQuery() {
  if (isset($this->stmt) && $this->stmt instanceof PDOStatement) {
    $this->stmt
      ->closeCursor();
  }
  unset($this->stmt);
  $this->row = NULL;
  $this->cycleRows = FALSE;
  return $this->qp;
}