mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-12 13:32:16 +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())
|
if ($this->isError())
|
||||||
{
|
{
|
||||||
return $this->getError();
|
$output = $this->getError();
|
||||||
|
$output->add('_count', $query_string);
|
||||||
|
return $output;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -474,11 +476,13 @@ class DB
|
||||||
catch (Exceptions\DBError $e)
|
catch (Exceptions\DBError $e)
|
||||||
{
|
{
|
||||||
$output = $this->setError(-1, $e->getMessage());
|
$output = $this->setError(-1, $e->getMessage());
|
||||||
|
$output->add('_count', $query_string);
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
catch (\PDOException $e)
|
catch (\PDOException $e)
|
||||||
{
|
{
|
||||||
$output = $this->setError(-1, $e->getMessage());
|
$output = $this->setError(-1, $e->getMessage());
|
||||||
|
$output->add('_count', $query_string);
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue