mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix warnings when executing unusual queries
This commit is contained in:
parent
e94146b490
commit
4926a44ecc
2 changed files with 11 additions and 3 deletions
|
|
@ -1193,8 +1193,16 @@ class DB
|
|||
$result['called_file'] = $backtrace[$no]['file'];
|
||||
$result['called_line'] = $backtrace[$no]['line'];
|
||||
$no++;
|
||||
$result['called_method'] = $backtrace[$no]['class'] . $backtrace[$no]['type'] . $backtrace[$no]['function'];
|
||||
$result['backtrace'] = array_slice($backtrace, $no, 1);
|
||||
if (isset($backtrace[$no]))
|
||||
{
|
||||
$result['called_method'] = $backtrace[$no]['class'] . $backtrace[$no]['type'] . $backtrace[$no]['function'];
|
||||
$result['backtrace'] = array_slice($backtrace, $no, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
$result['called_method'] = '';
|
||||
$result['backtrace'] = [];
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ class VariableBase
|
|||
}
|
||||
elseif ($this->not_null)
|
||||
{
|
||||
throw new \Rhymix\Framework\Exceptions\QueryError('Variable ' . $this->var . ' for column ' . $this->column . ' is not set');
|
||||
throw new \Rhymix\Framework\Exceptions\QueryError('Variable ' . $this->var . ' for column ' . ($this->column ?? 'unknown') . ' is not set');
|
||||
}
|
||||
elseif (!in_array($this->operation, ['null', 'notnull', 'not_null']))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue