1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-6738: use_stat_table + histograms crashing optimizer

- When EITS code calls store_key_image_to_rec(), it should follow its 
  calling convention (which is counter-intuitive)
This commit is contained in:
Sergey Petrunya
2014-10-10 17:08:12 +04:00
parent 33f1ac66ad
commit 41b45a8163
4 changed files with 32 additions and 3 deletions

View File

@@ -3737,6 +3737,11 @@ bool calculate_cond_selectivity_for_table(THD *thd, TABLE *table, Item *cond)
field Field which key image should be stored
ptr Field value in key format
len Length of the value, in bytes
ATTENTION
len is the length of the value not counting the NULL-byte (at the same
time, ptr points to the key image, which starts with NULL-byte for
nullable columns)
DESCRIPTION
Copy the field value from its key image to the table record. The source