From 0115e94cfd255b53ca517d9e8628386a382a239b Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sat, 20 May 2006 13:20:38 +0000 Subject: - seperate queries and cached queries - display correct read/unread information while displaying active topics - fix for SELECT DISTINCT in mssql using sql_query_limit - fix for forum updating in ACP using mssql (and probably other dbal having problems with primary keys in updates) git-svn-id: file:///svn/phpbb/trunk@5940 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/db/mysql.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'phpBB/includes/db/mysql.php') diff --git a/phpBB/includes/db/mysql.php b/phpBB/includes/db/mysql.php index d9369f3a75..8fc9e2a04b 100644 --- a/phpBB/includes/db/mysql.php +++ b/phpBB/includes/db/mysql.php @@ -105,11 +105,10 @@ class dbal_mysql extends dbal } $this->query_result = ($cache_ttl && method_exists($cache, 'sql_load')) ? $cache->sql_load($query) : false; + $this->sql_add_num_queries($this->query_result); if (!$this->query_result) { - $this->num_queries++; - if (($this->query_result = @mysql_query($query, $this->db_connect_id)) === false) { $this->sql_error($query); -- cgit v1.2.1