From 7b0286c82f9ee41182fa9202b0854b572351dc3b Mon Sep 17 00:00:00 2001 From: "Paula V. Quispe" Date: Fri, 4 Dec 2015 14:46:44 -0400 Subject: [PATCH] PM-4296 PM-4296 --- gulliver/thirdparty/creole/contrib/DebugConnection.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gulliver/thirdparty/creole/contrib/DebugConnection.php b/gulliver/thirdparty/creole/contrib/DebugConnection.php index 0e830b31a..17e14969f 100755 --- a/gulliver/thirdparty/creole/contrib/DebugConnection.php +++ b/gulliver/thirdparty/creole/contrib/DebugConnection.php @@ -158,7 +158,11 @@ class DebugConnection implements Connection { $res = $this->childConnection->executeQuery($sql, $fetchmode); $endTime = microtime(true); $time = $endTime - $startTime; - $this->log("executeQuery|$time|$sql"); + if(is_string($sql)){ + $this->log("executeQuery|$time|$sql"); + }else{ + $this->log("executeQuery|$time|Sql empty"); + } return $res; }