I guess we can support OFFSET too, or can we?
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Tue, 2 Aug 2005 21:02:49 +0000 (21:02 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Tue, 2 Aug 2005 21:02:49 +0000 (21:02 +0000)
includes/Database.php

index 54ea219..3776e0d 100644 (file)
@@ -729,7 +729,7 @@ class Database {
                        $sql = "SELECT $vars $from $useIndex $tailOpts";
                }
                if (isset($options['LIMIT'])) {
-                       $sql = $this->limitResult($sql, $options['LIMIT'], false);
+                       $sql = $this->limitResult($sql, $options['LIMIT'], isset($options['OFFSET']) ? $options['OFFSET'] : false);
                }
                return $this->query( $sql, $fname );
        }