aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-11-13 16:34:36 -0800
committerfriendica <info@friendica.com>2014-11-13 16:34:36 -0800
commitedda931197c9e4d2642c60ab5ec2f1a80ce0e910 (patch)
treeccb4316e948ce9e9cb54b74b08cd00f27f9c6230
parentb5da015789876cda5581044647f2e4f8b7ee4e4c (diff)
downloadvolse-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.
-rwxr-xr-xinclude/dba/dba_mysqli.php2
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;
}