From: Alexander Ebert Date: Mon, 24 Oct 2022 14:47:17 +0000 (+0200) Subject: Drop the superfluous `ORDER BY` clause X-Git-Tag: 5.5.7~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=90e6e886250406ecff9ad046b138755dbcf86366;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.exporter.git Drop the superfluous `ORDER BY` clause This was required for the previous query that used `LIMIT … OFFSET` to fetch the data. --- diff --git a/files/lib/system/exporter/IPB3xExporter.class.php b/files/lib/system/exporter/IPB3xExporter.class.php index e9bff95..a531c35 100644 --- a/files/lib/system/exporter/IPB3xExporter.class.php +++ b/files/lib/system/exporter/IPB3xExporter.class.php @@ -1192,8 +1192,7 @@ class IPB3xExporter extends AbstractExporter FROM " . $this->databasePrefix . "attachments WHERE attach_rel_module = ? AND attach_rel_id > ? - AND attach_id BETWEEN ? AND ? - ORDER BY attach_id DESC"; + AND attach_id BETWEEN ? AND ?"; $statement = $this->database->prepareStatement($sql, $limit, $offset); $statement->execute([ $type,