From c74b68c26be43b2f622bbde659442a5988090b78 Mon Sep 17 00:00:00 2001 From: Ludovic Arnaud Date: Thu, 24 Apr 2003 18:19:45 +0000 Subject: [PATCH] Store only SELECT queries to be flushed later git-svn-id: file:///svn/phpbb/trunk@3945 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/db/mysql.php | 5 ++++- phpBB/includes/db/mysql4.php | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/db/mysql.php b/phpBB/includes/db/mysql.php index 589e68007e..6346567076 100644 --- a/phpBB/includes/db/mysql.php +++ b/phpBB/includes/db/mysql.php @@ -191,7 +191,10 @@ class sql_db $this->sql_report .= "
\n"; } - $this->open_queries[] = $this->query_result; + if (preg_match('/^SELECT/', $query)) + { + $this->open_queries[] = $this->query_result; + } } if (!empty($cache_result)) diff --git a/phpBB/includes/db/mysql4.php b/phpBB/includes/db/mysql4.php index 399c8aed96..6eb0a2c811 100644 --- a/phpBB/includes/db/mysql4.php +++ b/phpBB/includes/db/mysql4.php @@ -187,7 +187,10 @@ class sql_db $this->sql_report .= "
\n"; } - $this->open_queries[] = $this->query_result; + if (preg_match('/^SELECT/', $query)) + { + $this->open_queries[] = $this->query_result; + } } if (!empty($cache_result))