Don't fetch if the query isn't SELECT

https://xetown.com/questions/1464687
This commit is contained in:
Kijin Sung 2020-10-04 16:46:51 +09:00
parent 882a0c9a0f
commit 44e73027a1

View file

@ -335,10 +335,14 @@ class DB
$this->_total_time += (microtime(true) - $start_time);
return $output;
}
else
elseif ($query->type === 'SELECT')
{
$result = $this->_fetch($this->_last_stmt, $last_index, $result_type);
}
else
{
$result = null;
}
}
catch (Exceptions\DBError $e)
{