Skip to content

Instantly share code, notes, and snippets.

@sminnee
Created September 18, 2018 04:20
Show Gist options
  • Select an option

  • Save sminnee/3ee98967c5b056a621a9e1e6bbdc060e to your computer and use it in GitHub Desktop.

Select an option

Save sminnee/3ee98967c5b056a621a9e1e6bbdc060e to your computer and use it in GitHub Desktop.
diff --git a/src/ORM/Connect/Database.php b/src/ORM/Connect/Database.php
index 4c60ed0..e16eba9 100644
--- a/src/ORM/Connect/Database.php
+++ b/src/ORM/Connect/Database.php
@@ -11,6 +11,7 @@ use SilverStripe\ORM\Queries\SQLUpdate;
use SilverStripe\ORM\Queries\SQLInsert;
use BadMethodCallException;
use Exception;
+use SilverStripe\Dev\Backtrace;
/**
* Abstract database connectivity class.
@@ -217,6 +218,7 @@ abstract class Database
}
$queryCount = sprintf("%04d", $this->queryCount);
Debug::message("\n$queryCount: $sql\n{$endtime}s\n", false);
+ //Backtrace::backtrace();
return $result;
} else {
return $callback($sql);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment