aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/mysql.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-09-23 11:10:37 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-09-23 11:10:37 +0000
commit6d08ef7b3ab9e481cc56b94865bb07ade34a80ef (patch)
tree8cfe68ddc26ab3776a746ea40c99621076d71c33 /phpBB/includes/db/mysql.php
parent7542fabaa708677a015ab968724f5b337105702b (diff)
downloadforums-6d08ef7b3ab9e481cc56b94865bb07ade34a80ef.tar
forums-6d08ef7b3ab9e481cc56b94865bb07ade34a80ef.tar.gz
forums-6d08ef7b3ab9e481cc56b94865bb07ade34a80ef.tar.bz2
forums-6d08ef7b3ab9e481cc56b94865bb07ade34a80ef.tar.xz
forums-6d08ef7b3ab9e481cc56b94865bb07ade34a80ef.zip
made sql_rowseek consistent with the dbal methods as well as fixing sql_query_limit for mssql, especially if sql_query_limit($sql, 0, 0) is given...
git-svn-id: file:///svn/phpbb/trunk@6389 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/db/mysql.php')
-rw-r--r--phpBB/includes/db/mysql.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/db/mysql.php b/phpBB/includes/db/mysql.php
index 099e1cf11a..6aadd812a4 100644
--- a/phpBB/includes/db/mysql.php
+++ b/phpBB/includes/db/mysql.php
@@ -249,7 +249,7 @@ class dbal_mysql extends dbal
{
if (isset($cache->sql_rowset[$query_id]))
{
- $cache->sql_rowseek($query_id, $rownum);
+ $cache->sql_rowseek($rownum, $query_id);
return $cache->sql_fetchfield($query_id, $field);
}
@@ -275,7 +275,7 @@ class dbal_mysql extends dbal
if (isset($cache->sql_rowset[$query_id]))
{
- return $cache->sql_rowseek($query_id, $rownum);
+ return $cache->sql_rowseek($rownum, $query_id);
}
return ($query_id) ? @mysql_data_seek($query_id, $rownum) : false;