1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00
Files
mariadb/mysql-test/suite/maria
Alexander Barkov df72c57d6f MDEV-30048 Prefix keys for CHAR work differently for MyISAM vs InnoDB
Also fixes: MDEV-30050 Inconsistent results of DISTINCT with NOPAD

Problem:

Key segments for CHAR columns where compared using strnncollsp()
for engines MyISAM and Aria.

This did not work correct in case if the engine applyied trailing
space compression.

Fix:

Replacing ha_compare_text() calls to new functions:

- ha_compare_char_varying()
- ha_compare_char_fixed()
- ha_compare_word()
- ha_compare_word_prefix()
- ha_compare_word_or_prefix()

The code branch corresponding to comparison of CHAR column keys
(HA_KEYTYPE_TEXT segment type) now uses ha_compare_char_fixed()
which calls strnncollsp_nchars().

This patch does not change the behavior for the rest of the code:
- comparison of VARCHAR/TEXT column keys
  (HA_KEYTYPE_VARTEXT1, HA_KEYTYPE_VARTEXT2 segments types)
- comparison in the fulltext code
2023-10-24 03:35:48 +04:00
..
2022-09-13 16:36:38 +03:00
2020-01-24 15:38:25 +01:00
2018-08-31 15:10:02 +03:00
2020-11-30 19:57:50 +02:00
2013-05-20 12:36:30 +02:00
2013-05-20 12:36:30 +02:00
2015-01-21 12:03:02 +01:00
2019-10-18 09:05:27 +03:00
2017-02-10 06:30:42 -05:00
2017-02-10 06:30:42 -05:00
2022-09-13 16:36:38 +03:00
2022-09-13 16:36:38 +03:00
2013-06-06 17:51:28 +02:00
2022-09-13 16:36:38 +03:00
2022-09-13 16:36:38 +03:00
2012-05-16 18:46:02 +03:00
2022-09-13 16:36:38 +03:00
2019-06-19 00:35:44 +03:00
2019-06-19 00:35:44 +03:00