Permalink
Browse files

Doctrine 2 ConnectionPanel: Fixed case insensitivity and processing e…

…xplains for queries starting with space
  • Loading branch information...
1 parent 0def412 commit 34678da3f195813967f00e62f6ed457a3754af90 @Majkl578 Majkl578 committed Feb 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 Nella/Doctrine/Diagnostics/ConnectionPanel.php
@@ -92,7 +92,7 @@ public function stopQuery()
$query = $this->queries[$key][self::SQL];
- if (!Strings::startsWith($query, 'SELECT')) { // only SELECTs are supported
+ if (strtoupper(substr(ltrim($query), 0, 6)) !== 'SELECT') { // only SELECTs are supported
return;
}

0 comments on commit 34678da

Please sign in to comment.