Permalink
Browse files

MINOR Removed debug code (from r97910)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102552 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
chillu committed Apr 13, 2010
1 parent ee4174c commit 6fb2a2a2e0a9e0843dd189248fa321e272f36541
Showing with 0 additions and 9 deletions.
  1. +0 −9 core/model/DB.php
View
@@ -122,15 +122,6 @@ public function getConnect($parameters) {
*/
static function query($sql, $errorLevel = E_USER_ERROR) {
self::$lastQuery = $sql;
- /* debug helper for query efficiency
- if(substr(strtolower($sql),0,6) == 'select') {
- $product = 1;
- foreach(self::getConn()->query("explain " . $sql, $errorLevel) as $explainRow) {
- if($explainRow['rows']) $product *= $explainRow['rows'];
- }
- if($product > 100)
- Debug::message("Cartesian product $product for SQL: $sql");
- } */
return self::getConn()->query($sql, $errorLevel);
}

0 comments on commit 6fb2a2a

Please sign in to comment.