mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 06:07:39 +02:00
fixed regexp for profiler
This commit is contained in:
@@ -328,7 +328,7 @@ class DibiConnection extends DibiObject
|
|||||||
|
|
||||||
if ($this->profiler !== NULL) {
|
if ($this->profiler !== NULL) {
|
||||||
$event = IDibiProfiler::QUERY;
|
$event = IDibiProfiler::QUERY;
|
||||||
if (preg_match('#\s*(SELECT|UPDATE|INSERT|DELETE)#i', $sql, $matches)) {
|
if (preg_match('#\s*(SELECT|UPDATE|INSERT|DELETE)#iA', $sql, $matches)) {
|
||||||
static $events = array(
|
static $events = array(
|
||||||
'SELECT' => IDibiProfiler::SELECT, 'UPDATE' => IDibiProfiler::UPDATE,
|
'SELECT' => IDibiProfiler::SELECT, 'UPDATE' => IDibiProfiler::UPDATE,
|
||||||
'INSERT' => IDibiProfiler::INSERT, 'DELETE' => IDibiProfiler::DELETE,
|
'INSERT' => IDibiProfiler::INSERT, 'DELETE' => IDibiProfiler::DELETE,
|
||||||
|
Reference in New Issue
Block a user