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

View file

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