-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With Mariadb 11.1.2 ordering of table is broken #42333
Comments
FURTHER BUG REPORTI took a closer look at the function
but with
This no longer works, so the first variant does it quite correctly.
It works for:
Good to know: This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42333. |
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42333. |
thanks for reporting and to propose a fix please follow upstream joomla-framework/database#291 |
It's effect each component, not only com_banners. I have test successfully the PR 291. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42333. |
Alternative PR see joomla-framework/database#300 . Please test. |
|
Steps to reproduce the issue
Expected result
like with MariaDB 10.11.4 (active Debian Bookworm, etc.)
the ordering of the banners is 2 - 1 - 3
the ordering is retained.
Actual result
Ordering of the banners is reordered to 1 - 2 - 3
You cannot change the ordering with "Drag and Drop".
System information (as much as possible)
Joomla! 5.0.0, 4.4.0, 4.3.4
PHP Versions 8.2.12, 8.1.25, 8.3.0RC5
MariaDB 11.1.2
Additional comments
I am currently developing a component and have several tables with the field "ordering". I have noticed that drag 'n drop does not work on my developer system under Arch Linux, but it does work on the production system under Debian and also on an older BSD system. To cut a long story short, I have tried all possible PHP versions and Joomla versions. However, the version of the MariaDB database plays a role:
The function in
/libraries/src/table.php
calls afunction public function reorder($where = '')
, which is processed differently.It forms a query such as
This query does reorder the table in MariaDB 10.11.4 but equals the
id
withordering
in MariaDB 11.1.2Perhaps, there is also correlation to https://jira.mariadb.org/browse/MDEV-27745
The text was updated successfully, but these errors were encountered: