$result = @($unbuffered ? mysql_unbuffered_query($query, $this->_link) : mysql_query($query, $this->_link)); // @ - mute mysql.trace_mode
$this->error = "";
if (!$result) {
- $this->errrno = mysql_errno($this->_link);
+ $this->errno = mysql_errno($this->_link);
$this->error = mysql_error($this->_link);
return false;
}
function store_result($result = null) {
if (!$result) {
$result = $this->_result;
+ if (!$result) {
+ return false;
+ }
}
if ($result->columnCount()) {
$result->num_rows = $result->rowCount(); // is not guaranteed to work with all drivers
}
function next_result() {
+ if (!$this->_result) {
+ return false;
+ }
$this->_result->_offset = 0;
return @$this->_result->nextRowset(); // @ - PDO_PgSQL doesn't support it
}