/** * Closes the cursor, enabling the statement to be executed again. * * @return boolean */ public function closeCursor() { try { return $this->stmt->closeCursor(); } catch (PDOException $e) { StatementException::pdoStmtError($e->getMessage(), $e->getCode()); } }
/** * @throws \StatementException Error with MySQLi * @throws \StatementException Error with MySQLi Statement */ private function verifyMySQLiErrorsAndThrowException() { if (!is_null($this->mysqli->error)) { StatementException::mysqliError($this->mysqli->error, $this->mysqli->errno); } if (!is_null($this->stmt->error)) { StatementException::mysqliStmtError($this->stmt->error, $this->stmt->errno); } }