From 0207abde025460c06e888bab7f49a0417e78baf9 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 1 Jun 2005 02:10:29 +0000 Subject: [PATCH] * Fix function comment in debug dump of SQL statements I could swear I've fixed this thing several times. --- RELEASE-NOTES | 1 + includes/Database.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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" ); } -- 2.20.1