From: Tim Düsterhus Date: Sun, 14 Jun 2015 12:59:33 +0000 (+0200) Subject: Remove obsolete MySQLDatabase::handleLimitParameter() X-Git-Tag: 3.0.0_Beta_1~2274 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1ef12a31eef0a797df720cb105732f182d628fef;p=GitHub%2FWoltLab%2FWCF.git Remove obsolete MySQLDatabase::handleLimitParameter() `LIMIT … OFFSET …` is supported since at least MySQL 5.0. We require 5.1. --- 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() */