From 1ef12a31eef0a797df720cb105732f182d628fef Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 14 Jun 2015 14:59:33 +0200 Subject: [PATCH] Remove obsolete MySQLDatabase::handleLimitParameter() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit `LIMIT … OFFSET …` is supported since at least MySQL 5.0. We require 5.1. --- .../lib/system/database/MySQLDatabase.class.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/wcfsetup/install/files/lib/system/database/MySQLDatabase.class.php b/wcfsetup/install/files/lib/system/database/MySQLDatabase.class.php index 1da134cbd0..3fce425a53 100644 --- a/wcfsetup/install/files/lib/system/database/MySQLDatabase.class.php +++ b/wcfsetup/install/files/lib/system/database/MySQLDatabase.class.php @@ -2,7 +2,7 @@ namespace wcf\system\database; /** - * This is the database implementation for MySQL4.1 or higher using PDO. + * This is the database implementation for MySQL 5.1 or higher using PDO. * * @author Marcel Werk * @copyright 2001-2015 WoltLab GmbH @@ -54,18 +54,6 @@ class MySQLDatabase extends Database { return (extension_loaded('PDO') && extension_loaded('pdo_mysql')); } - /** - * @see \wcf\system\database\Database::handleLimitParameter() - */ - public function handleLimitParameter($query, $limit = 0, $offset = 0) { - if ($limit != 0) { - if ($offset > 0) $query .= " LIMIT " . $offset . ", " . $limit; - else $query .= " LIMIT " . $limit; - } - - return $query; - } - /** * @see \wcf\system\database\PDODatabase::setAttributes() */ -- 2.20.1