aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/mysql4.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-04-17 17:01:10 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-04-17 17:01:10 +0000
commitcc1a5f899d5758be6d592acedb244fdc34cfee38 (patch)
tree0ab6e856e64a5ccdc55e3594a62cd77c6f1b81b5 /phpBB/includes/db/mysql4.php
parentd2db3f75bce2f824d5a9d19c0323a934a3e77167 (diff)
downloadforums-cc1a5f899d5758be6d592acedb244fdc34cfee38.tar
forums-cc1a5f899d5758be6d592acedb244fdc34cfee38.tar.gz
forums-cc1a5f899d5758be6d592acedb244fdc34cfee38.tar.bz2
forums-cc1a5f899d5758be6d592acedb244fdc34cfee38.tar.xz
forums-cc1a5f899d5758be6d592acedb244fdc34cfee38.zip
Remove superfluous query count increment in sql_query_limit
git-svn-id: file:///svn/phpbb/trunk@3871 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/db/mysql4.php')
-rw-r--r--phpBB/includes/db/mysql4.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/phpBB/includes/db/mysql4.php b/phpBB/includes/db/mysql4.php
index 42df6a6494..1ab4a43383 100644
--- a/phpBB/includes/db/mysql4.php
+++ b/phpBB/includes/db/mysql4.php
@@ -32,13 +32,12 @@ class sql_db
var $transaction = false;
var $sql_report = '';
var $sql_time = 0;
+ var $num_queries = 0;
+ var $open_querues = array();
// Constructor
function sql_db($sqlserver, $sqluser, $sqlpassword, $database, $port, $persistency = false)
{
- $this->open_queries = array();
- $this->num_queries = 0;
-
$this->persistency = $persistency;
$this->user = $sqluser;
$this->password = $sqlpassword;
@@ -138,7 +137,7 @@ class sql_db
$curtime = $curtime[0] + $curtime[1] - $starttime;
}
- if (!$this->query_result = @mysql_query($query, $this->db_connect_id))
+ if (!($this->query_result = @mysql_query($query, $this->db_connect_id)))
{
$this->sql_error($query);
}
@@ -210,7 +209,6 @@ class sql_db
if ($query != '')
{
$this->query_result = false;
- $this->num_queries++;
$query .= ' LIMIT ' . ((!empty($offset)) ? $offset . ', ' . $total : $total);