From 678a225167734521de075569f86f7a375f9c69d2 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Sat, 12 Nov 2005 16:17:01 +0000 Subject: [PATCH] move function name comment from start of query string to a next whitespace simply makes query cache work ;-D --- includes/Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1