From: Brion Vibber Date: Wed, 1 Jun 2005 02:10:29 +0000 (+0000) Subject: * Fix function comment in debug dump of SQL statements X-Git-Tag: 1.5.0alpha2~16 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/Main?a=commitdiff_plain;h=0207abde025460c06e888bab7f49a0417e78baf9;p=lhc%2Fweb%2Fwiklou.git * Fix function comment in debug dump of SQL statements I could swear I've fixed this thing several times. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 14dbc8fceb..ab9c2f7f2c 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -231,6 +231,7 @@ Various bugfixes, small features, and a few experimental things: * Replace wfMungeToUtf8 and do_html_entity_decode with a single function that does both numeric and named chars: Sanitizer::decodeCharReferences * Removed some obsolete UTF-8 converter functions +* Fix function comment in debug dump of SQL statements === Caveats === diff --git a/includes/Database.php b/includes/Database.php index 8b9858a4e2..0dce6a9b5a 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -309,8 +309,8 @@ class Database { } if ( $this->debug() ) { - $sqlx = substr( $sql, 0, 500 ); - $sqlx = strtr($sqlx,"\t\n",' '); + $sqlx = substr( $commentedSql, 0, 500 ); + $sqlx = strtr( $sqlx, "\t\n", ' ' ); wfDebug( "SQL: $sqlx\n" ); }