aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/db/firebird.php10
1 files 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
{