Permalink
Browse files

Merge pull request #46 from Majkl578/bugfix/connectionpanel-ltrim

Doctrine 2 ConnectionPanel: Fixed case insensitivity and processing explains for queries starting with space
  • Loading branch information...
2 parents 0def412 + 34678da commit ec6a040b46f94e16f052d2c1d1b6cfb792879bc7 @Vrtak-CZ Vrtak-CZ committed Mar 3, 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 ec6a040

Please sign in to comment.