From 3de2acb3dff88b486b2b495edb2db97e95fdbce3 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 9 Jan 2005 20:10:26 +0000 Subject: [PATCH] - this should work... he says git-svn-id: file:///svn/phpbb/trunk@5052 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/db/firebird.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/phpBB/includes/db/firebird.php b/phpBB/includes/db/firebird.php index c745e5cb02..2b3bcb251b 100644 --- a/phpBB/includes/db/firebird.php +++ b/phpBB/includes/db/firebird.php @@ -293,9 +293,13 @@ class sql_db { if ($rownum > -1) { - // NOTE: Let's see how often we use this one and how fast we can produce a working query. ;D - // At the moment we are not taking advantage of this feature. - trigger_error('ROWNUM > 0 in sql_fetchfield not supported, please file a bug report.'); + // erm... ok, my bad, we always use zero. :/ + for ($i = 0; $i <= $rownum; $i++) + { + $row = $this->sql_fetchrow($query_id); + } + + return $row[$field]; } else {