From a2eb76b95e373bbbcc86280a4bf376a113674aad Mon Sep 17 00:00:00 2001 From: Thomas Kuschel Date: Sun, 12 Nov 2023 18:44:41 +0100 Subject: [PATCH] FIX With Mariadb 11.1.2 ordering of table is broken #290 --- src/Query/MysqlQueryBuilder.php | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/Query/MysqlQueryBuilder.php b/src/Query/MysqlQueryBuilder.php index ef106a7a..fa209474 100644 --- a/src/Query/MysqlQueryBuilder.php +++ b/src/Query/MysqlQueryBuilder.php @@ -195,29 +195,6 @@ public function findInSet($value, $set) return ' find_in_set(' . $value . ', ' . $set . ')'; } - /** - * Return the number of the current row. - * - * Usage: - * $query->select('id'); - * $query->selectRowNumber('ordering,publish_up DESC', 'new_ordering'); - * $query->from('#__content'); - * - * @param string $orderBy An expression of ordering for window function. - * @param string $orderColumnAlias An alias for new ordering column. - * - * @return $this - * - * @since 2.0.0 - * @throws \RuntimeException - */ - public function selectRowNumber($orderBy, $orderColumnAlias) - { - $this->validateRowNumber($orderBy, $orderColumnAlias); - - return $this->select("(SELECT @rownum := @rownum + 1 FROM (SELECT @rownum := 0) AS r) AS $orderColumnAlias"); - } - /** * Casts a value to a char. *