Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit ec6a040b46f94e16f052d2c1d1b6cfb792879bc7 2 parents 0def412 + 34678da
@Vrtak-CZ Vrtak-CZ authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Nella/Doctrine/Diagnostics/ConnectionPanel.php
View
2  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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.