diff options
author | Alexander Barkov <bar@mysql.com> | 2010-02-26 10:28:44 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mysql.com> | 2010-02-26 10:28:44 +0400 |
commit | da2e47a5330e73472c4c224b2e41748a18e2946a (patch) | |
tree | b1413763439eb460cdf0a41e595c67527384c548 /storage/heap | |
parent | d59c06d96c7d4ab75bad474ec6b7d02e72a3a87e (diff) | |
download | mariadb-git-da2e47a5330e73472c4c224b2e41748a18e2946a.tar.gz |
After-fix for WL#2649 Number-to-string conversion.
This change fixes test failure for partition_repair_myisam
and partition_recover_myisam.
The problem was that:
- the file std_data/corrupt_crash.MYI
contains charsetnr=63 (binary) for index segments.
- the new .frm file contains charsetnr=8 (latin1) for
the same segments.
As a result REPAIR refused to repair frm+MYI files
with different segment definition.
This fix restores the old behavior for frm and MYI files:
they now store charsetnr=63 for numeric/datetime data types.
Diffstat (limited to 'storage/heap')
-rw-r--r-- | storage/heap/ha_heap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/heap/ha_heap.cc b/storage/heap/ha_heap.cc index 8d07d21c6ae..4d01b9fd1c9 100644 --- a/storage/heap/ha_heap.cc +++ b/storage/heap/ha_heap.cc @@ -689,7 +689,7 @@ int ha_heap::create(const char *name, TABLE *table_arg, if (field->flags & (ENUM_FLAG | SET_FLAG)) seg->charset= &my_charset_bin; else - seg->charset= field->charset(); + seg->charset= field->charset_for_protocol(); if (field->null_ptr) { seg->null_bit= field->null_bit; |