mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Refined debugging of PDO queries.
This commit is contained in:
@@ -57,6 +57,15 @@
|
|||||||
return $this->aTimeMarks;
|
return $this->aTimeMarks;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return a list of currently logged items
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function getLog()
|
||||||
|
{
|
||||||
|
return $this->aLog;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function e107_db_debug()
|
function e107_db_debug()
|
||||||
{
|
{
|
||||||
|
@@ -309,7 +309,7 @@ class e_db_pdo implements e_db
|
|||||||
|
|
||||||
if ($debug == 'now')
|
if ($debug == 'now')
|
||||||
{
|
{
|
||||||
echo "<pre>** $query</pre><br />\n";
|
$this->dbg->log($query);
|
||||||
}
|
}
|
||||||
if ($debug !== false || strstr($_SERVER['QUERY_STRING'], 'showsql'))
|
if ($debug !== false || strstr($_SERVER['QUERY_STRING'], 'showsql'))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user