From edda931197c9e4d2642c60ab5ec2f1a80ce0e910 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 13 Nov 2014 16:34:36 -0800 Subject: mysql driver - in debug mode for statements that return true/false report the sql along with the result so we can match it to an offending statement. This has bugged me for some time but never got around to fixing it until now. --- include/dba/dba_mysqli.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/dba') diff --git a/include/dba/dba_mysqli.php b/include/dba/dba_mysqli.php index 19907705b..c71f493b0 100755 --- a/include/dba/dba_mysqli.php +++ b/include/dba/dba_mysqli.php @@ -40,7 +40,7 @@ class dba_mysqli extends dba_driver { if(($result === true) || ($result === false)) { if($this->debug) { - logger('dba_mysqli: DEBUG: returns ' . (($result) ? 'true' : 'false')); + logger('dba_mysqli: DEBUG: ' . printable($sql) . ' returns ' . (($result) ? 'true' : 'false')); } return $result; } -- cgit v1.2.3