From: Domas Mituzas Date: Sat, 12 Nov 2005 16:17:01 +0000 (+0000) Subject: move function name comment from start of query string to a next whitespace X-Git-Tag: 1.6.0~1193 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=678a225167734521de075569f86f7a375f9c69d2;p=lhc%2Fweb%2Fwiklou.git move function name comment from start of query string to a next whitespace simply makes query cache work ;-D --- diff --git a/includes/Database.php b/includes/Database.php index a4a889c6d3..db22009e94 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -388,7 +388,7 @@ class Database { # Add a comment for easy SHOW PROCESSLIST interpretation if ( $fname ) { - $commentedSql = "/* $fname */ $sql"; + $commentedSql = preg_replace("/\s/", " /* $fname */ ", $sql, 1); } else { $commentedSql = $sql; }