1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-29 00:08:14 +03:00
Commit Graph

5 Commits

Author SHA1 Message Date
unknown
c06d8fa1c7 Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-5.1-kt
into  mysql.com:/usr/home/bar/mysql-5.1.b20086


mysql-test/t/partition_innodb.test:
  Auto merged
sql/field.cc:
  Auto merged
sql/field.h:
  Auto merged
2006-06-22 18:51:50 +05:00
unknown
4e138572a0 Bug#20086: Can't get data from key partitioned tables with VARCHAR key
The problem appeared because the same values produced different hash
during INSERT and SELECT for VARCHAR data type.
Fix:
VARCHAR required special treatment to avoid hashing of length bytes
(leftmost one or two bytes) as well as trailing bytes beyond real length,
which could contain garbage. Fix is done by introducing hash() - new method
in the Field class.


mysql-test/r/partition_innodb.result:
  Adding test case
mysql-test/r/partition_pruning.result:
  Fixing test results (results differ due to changes in hash function)
mysql-test/t/partition_innodb.test:
  Adding test case
sql/field.cc:
  Adding generic hash() method, and a special
  method for VARCHAR.
sql/field.h:
  Adding prototypes for new methods
sql/key.cc:
  Mark columns for write before executinf of set_key_image().
  Thanks for Mikael for suggesting this fix.
sql/sql_partition.cc:
  Removing old hash code.
  Using new methid field->hash() instead.
2006-06-21 13:00:19 +05:00
unknown
a365c9b1bd Fixed test case 2006-06-20 10:16:08 -04:00
unknown
93cde729c0 BUG#19310: Add partition using InnoDB crashes MySQL Server
Added new test case


mysql-test/r/partition_innodb.result:
  Added new test case
mysql-test/t/partition_innodb.test:
  Added new test case
2006-05-27 20:30:53 -04:00
unknown
d13c5aa3b7 BUG#19903: Add partition crashes
Added new test cases
2006-05-27 20:23:22 -04:00