1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-21 01:42:30 +01:00

Store only SELECT queries to be flushed later

git-svn-id: file:///svn/phpbb/trunk@3945 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Ludovic Arnaud 2003-04-24 18:19:45 +00:00
parent ca9107dfba
commit c74b68c26b
2 changed files with 8 additions and 2 deletions

View File

@ -191,7 +191,10 @@ class sql_db
$this->sql_report .= "<hr>\n";
}
$this->open_queries[] = $this->query_result;
if (preg_match('/^SELECT/', $query))
{
$this->open_queries[] = $this->query_result;
}
}
if (!empty($cache_result))

View File

@ -187,7 +187,10 @@ class sql_db
$this->sql_report .= "<hr>\n";
}
$this->open_queries[] = $this->query_result;
if (preg_match('/^SELECT/', $query))
{
$this->open_queries[] = $this->query_result;
}
}
if (!empty($cache_result))