summaryrefslogtreecommitdiff
path: root/sql/ha_heap.cc
diff options
context:
space:
mode:
authorbar@gw.udmsearch.izhnet.ru <>2002-05-14 20:58:38 +0500
committerbar@gw.udmsearch.izhnet.ru <>2002-05-14 20:58:38 +0500
commit7fce07d52d8411d5b97f9de12661c664b1c552b5 (patch)
treeaabc829c5778332b2dedc76303a4d72e9f3ea6f6 /sql/ha_heap.cc
parentf3dc0a80e1d9d145eb273173cb7d5d552fe7dabc (diff)
downloadmariadb-git-7fce07d52d8411d5b97f9de12661c664b1c552b5.tar.gz
Now several character sets can live in the same table,
However some hacks were used while waiting for new FRM file
Diffstat (limited to 'sql/ha_heap.cc')
-rw-r--r--sql/ha_heap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_heap.cc b/sql/ha_heap.cc
index 43485a97fe3..e18bc877540 100644
--- a/sql/ha_heap.cc
+++ b/sql/ha_heap.cc
@@ -85,7 +85,7 @@ int ha_heap::open(const char *name, int mode, uint test_if_locked)
seg->start= (uint) key_part->offset;
seg->length= (uint) key_part->length;
seg->flag = 0;
- seg->charset= default_charset_info;
+ seg->charset= field->binary() ? NULL : ((Field_str*)field)->charset();
if (field->null_ptr)
{
seg->null_bit= field->null_bit;