mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Fix missing debug info when COUNT(*) query fails
This commit is contained in:
parent
b318e70fdf
commit
8540140f51
1 changed files with 5 additions and 1 deletions
|
|
@ -463,7 +463,9 @@ class DB
|
|||
|
||||
if ($this->isError())
|
||||
{
|
||||
return $this->getError();
|
||||
$output = $this->getError();
|
||||
$output->add('_count', $query_string);
|
||||
return $output;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -474,11 +476,13 @@ class DB
|
|||
catch (Exceptions\DBError $e)
|
||||
{
|
||||
$output = $this->setError(-1, $e->getMessage());
|
||||
$output->add('_count', $query_string);
|
||||
return $output;
|
||||
}
|
||||
catch (\PDOException $e)
|
||||
{
|
||||
$output = $this->setError(-1, $e->getMessage());
|
||||
$output->add('_count', $query_string);
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue