mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
Don't fetch if the query isn't SELECT
https://xetown.com/questions/1464687
This commit is contained in:
parent
882a0c9a0f
commit
44e73027a1
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue