From ae00fed71867218e908507cd0fdbdca3325af047 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Mon, 24 Jan 2011 15:06:44 +0100 Subject: [PATCH] fixed regexp for profiler --- dibi/libs/DibiConnection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dibi/libs/DibiConnection.php b/dibi/libs/DibiConnection.php index 7dd843bb..6eb11ef3 100644 --- a/dibi/libs/DibiConnection.php +++ b/dibi/libs/DibiConnection.php @@ -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,