Skip to content
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.

Commit

Permalink
Doctrine 2 ConnectionPanel: Fixed case insensitivity and processing e…
Browse files Browse the repository at this point in the history
…xplains for queries starting with space
  • Loading branch information
Majkl578 committed Feb 18, 2013
1 parent 0def412 commit 34678da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Nella/Doctrine/Diagnostics/ConnectionPanel.php
Expand Up @@ -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;
}

Expand Down

0 comments on commit 34678da

Please sign in to comment.