mariadb/storage
Michael Widenius c4f5326bb7 MDEV-6255 DUPLICATE KEY Errors on SELECT .. GROUP BY that uses temporary and filesort.
The problem was that my_hash_sort didn't properly delete end-space characters properly, so strings that should compare
identically was seen as different strings.  (Space was handled correctly, but not NBSP)
This caused duplicate key errors when a heap table was converted to Aria as part of overflow in group by.

Fixed by removing all characters that compares as end space when creating a hash.

Other things:
- Fixed that --sorted_results also works for errors in mysqltest.
- Speed up hash by not comparing strings that has different hash.
- Speed up many my_hash_sort functions by using registers to calculate hash instead of pointers.
  This was previously done for some functions, but not for all.
- Made a macro of the hash function, to simplify code and to be able to experiment with new hash functions.







client/mysqltest.cc:
  Fixed that --sorted_results also works for error messages.
mysql-test/r/ctype_partitions.result:
  New test to ensure that partitions on hash works
mysql-test/suite/multi_source/gtid.result:
  Updated result
mysql-test/suite/multi_source/gtid.test:
  Test that --sorted_result works for error messages
mysql-test/suite/multi_source/gtid_ignore_duplicates.result:
  Updated result
mysql-test/suite/multi_source/gtid_ignore_duplicates.test:
  Updated result
mysql-test/suite/multi_source/load_data.result:
  Updated result
mysql-test/suite/multi_source/load_data.test:
  Updated result
mysql-test/t/ctype_partitions.test:
  New test to ensure that partitions on hash works
storage/heap/hp_write.c:
  Speed up hash by not comparing strings that has different hash.
storage/maria/ma_check.c:
  Extra debug
strings/ctype-bin.c:
  Use macro for hash function
strings/ctype-latin1.c:
  Use macro for hash function
  Use registers to calculate hash (speedup)
strings/ctype-mb.c:
  Use macro for hash function
  Use registers to calculate hash (speedup)
strings/ctype-simple.c:
  Use macro for hash function
  Use same variable names as in other my_hash_sort functions.
  Update my_hash_sort_simple() to properly remove end space (patch by Bar)
strings/ctype-uca.c:
  Ignore duplicated space inside strings and end space in my_hash_sort_uca(). This fixed MDEV-6255
  Use macro for hash function
  Use registers to calculate hash (speedup)
strings/ctype-ucs2.c:
  Use macro for hash function
  Use registers to calculate hash (speedup)
strings/ctype-utf8.c:
  Use macro for hash function
  Use registers to calculate hash (speedup)
strings/strings_def.h:
  Made a macro of the hash function, to simplify code and to be able to experiment with new hash functions.
2014-09-11 22:42:35 +03:00
..
archive 5.5.38 merge 2014-06-06 00:07:27 +02:00
blackhole
cassandra MDEV-5404 Can't free data returned by mariadb_dyncol_unpack on windows 2014-03-19 09:58:18 +01:00
connect Added Innobase .ic and errmsg-utf8.txt to tagged files 2014-08-14 15:36:48 +03:00
csv MySQL WL#5522 - InnoDB transportable tablespaces. 2014-02-02 10:06:29 +01:00
example 5.5 merge 2014-05-09 12:35:11 +02:00
federated remove append_escaped(), use String::append_for_single_quote() instead 2014-03-26 09:41:52 +01:00
federatedx 5.5 merge 2014-05-09 12:35:11 +02:00
heap MDEV-6255 DUPLICATE KEY Errors on SELECT .. GROUP BY that uses temporary and filesort. 2014-09-11 22:42:35 +03:00
innobase MDEV-6590: InnoDB recover ends in signal 11 2014-08-25 13:35:33 +03:00
maria MDEV-6255 DUPLICATE KEY Errors on SELECT .. GROUP BY that uses temporary and filesort. 2014-09-11 22:42:35 +03:00
myisam 5.5.39 merge 2014-08-07 18:06:56 +02:00
myisammrg 5.5 merge 2014-05-09 12:35:11 +02:00
ndb mysql-5.5.37 selective merge 2014-03-27 22:26:58 +01:00
oqgraph Fixed failing testcase 2014-07-30 23:16:49 +03:00
perfschema perfschema 5.6.20 2014-08-06 19:41:33 +02:00
sequence promote server_audit and sequence plugins to stable 2014-06-13 13:25:32 +02:00
sphinx Moving Item::str_value from public to protected. 2014-09-03 01:56:21 +04:00
spider fix wrong result for Spider test 2014-06-10 02:50:33 +09:00
test_sql_discovery MDEV-4955 discover of table non-existance on CREATE 2014-02-27 22:43:42 +01:00
tokudb Automatic merge from 5.5 2014-08-19 21:35:14 +03:00
xtradb MDEV-6590: InnoDB recover ends in signal 11 2014-08-25 13:35:33 +03:00