MySQL Bug#32426: FederatedX corrupt ORDER BY with TEXT

Bug #571200 reported by Kristian Nielsen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MariaDB
Fix Released
Medium
CaptTofu

Bug Description

http://bugs.mysql.com/bug.php?id=32426

mysql> select * from t1;
+------+
| c1 |
+------+
| abc |
| gh |
| f |
| ijk |
| de |
+------+
5 rows in set (0.00 sec)

mysql> select * from t1 order by c1;
+------+
| c1 |
+------+
| dek |
| de |
| d |
| de |
| dek |
+------+
5 rows in set (0.00 sec)

Check the MySQL bug link for how to repeat, or comment in the test from .mysql-test/suite/federated/federated.test

This bug was fixed in FEDERATED in MySQL, seems we need to port the fix to FEDERATEDX. The code is sufficiently different that porting the fix is not trivial.

Now that I merge MySQL 5.1.46, I get the test case and see the bug in the testsuite.

I will comment out the test in mysql-test/suite/federated/federated.test. The test needs to be re-enabled as part of this bug fix.

Tags: federatedx

Related branches

Changed in maria:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → CaptTofu (capttofu)
Revision history for this message
CaptTofu (capttofu) wrote :

apparently, this pertains to the how blobs are handled in Federated/FederatedX. I need to discuss with someone what exactly can be done to ensure correct ordering, even for BLOB-type fields.

Revision history for this message
Kristian Nielsen (knielsen) wrote :

There is a patch for this issue against FEDERATED in the MySQL bug:

    http://bugs.mysql.com/bug.php?id=32426
    http://lists.mysql.com/commits/102419

Can't you use the same method as that patch?

Revision history for this message
CaptTofu (capttofu) wrote :

Yes, working on a fix for this right now! I finally have time to dedicate to FederatedX again :)

Michael Widenius (monty)
Changed in maria:
importance: High → Medium
Michael Widenius (monty)
Changed in maria:
status: Confirmed → In Progress
Revision history for this message
Michael Widenius (monty) wrote :

I was looking at merging this to 5.1 to fix the open federated bugs in 5.1, but the tree is depending on 5.2

i will look at this next week (after linuxconf) and see if I can easily extract the patch and apply it safely to 5.1

Revision history for this message
Michael Widenius (monty) wrote :

Fix now pushed into 5.1

Changed in maria:
status: In Progress → Fix Committed
Changed in maria:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.