diff options
Diffstat (limited to 'phpBB/includes/db/postgres.php')
-rw-r--r-- | phpBB/includes/db/postgres.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/phpBB/includes/db/postgres.php b/phpBB/includes/db/postgres.php index eb5f2d17e8..22481267e5 100644 --- a/phpBB/includes/db/postgres.php +++ b/phpBB/includes/db/postgres.php @@ -136,11 +136,10 @@ class dbal_postgres extends dbal $this->last_query_text = $query; $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 = @pg_query($this->db_connect_id, $query)) === false) { $this->sql_error($query); |