1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-05 05:37:39 +02:00

fixed regexp for profiler

This commit is contained in:
David Grudl
2011-01-24 15:06:44 +01:00
parent af715a8044
commit ae00fed718

View File

@@ -328,7 +328,7 @@ class DibiConnection extends DibiObject
if ($this->profiler !== NULL) {
$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(
'SELECT' => IDibiProfiler::SELECT, 'UPDATE' => IDibiProfiler::UPDATE,
'INSERT' => IDibiProfiler::INSERT, 'DELETE' => IDibiProfiler::DELETE,