public function unbuffered_query($sql) { $q = mysqli_unbuffered_query($sql, $this->mysqli); if ($q === false) { throw new dbException(mysqli_error($this->mysqli) . "\nSQL: {$sql}", mysqli_errno($this->mysqli)); } return $q; }
public function unbuffExecuteSQL($sql) { //$this->dispatchEvent('preExecute', $this, $sql); $this->connect(); $rs = @mysqli_unbuffered_query($sql, $this->conn_id); if (!$rs) { $msg = "[!Database error:!] " . $this->getErrorMsg(); PhpBURN_Message::output($msg, PhpBURN_Message::ERROR); return false; //$this->dispatchEvent('onExecuteError', $this, $sql, $msg); } //$this->close(); //$this->dispatchEvent('posExecute', $this, $sql); return $rs; }