diff options
author | friendica <info@friendica.com> | 2014-11-13 16:34:36 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-11-13 16:34:36 -0800 |
commit | edda931197c9e4d2642c60ab5ec2f1a80ce0e910 (patch) | |
tree | ccb4316e948ce9e9cb54b74b08cd00f27f9c6230 /include/dba/dba_mysqli.php | |
parent | b5da015789876cda5581044647f2e4f8b7ee4e4c (diff) | |
download | volse-hubzilla-edda931197c9e4d2642c60ab5ec2f1a80ce0e910.tar.gz volse-hubzilla-edda931197c9e4d2642c60ab5ec2f1a80ce0e910.tar.bz2 volse-hubzilla-edda931197c9e4d2642c60ab5ec2f1a80ce0e910.zip |
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.
Diffstat (limited to 'include/dba/dba_mysqli.php')
-rwxr-xr-x | include/dba/dba_mysqli.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |