summaryrefslogtreecommitdiff
path: root/storage/myisam/ha_myisam.cc
diff options
context:
space:
mode:
authoristruewing@stella.local <>2008-01-24 18:56:42 +0100
committeristruewing@stella.local <>2008-01-24 18:56:42 +0100
commit8aebd394b8dd392a538f5fca5e03b37d6fd30c34 (patch)
tree3e1d698fda70c9a799c0eb883447a9e4427dd4d8 /storage/myisam/ha_myisam.cc
parente7b93517f754e364da7ac73143fe72b7b59e2247 (diff)
downloadmariadb-git-8aebd394b8dd392a538f5fca5e03b37d6fd30c34.tar.gz
Bug#29182 - MyISAMCHK reports wrong character set
myisamchk did always show Character set: latin1_swedish_ci (8), regardless what DEFAULT CHARSET the table had. When the server created a MyISAM table, it did not copy the characterset number into the MyISAM create info structure. Added assignment of charset number to MI_CREATE_INFO.
Diffstat (limited to 'storage/myisam/ha_myisam.cc')
-rw-r--r--storage/myisam/ha_myisam.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/myisam/ha_myisam.cc b/storage/myisam/ha_myisam.cc
index 0b69f9d135f..09393d58d1a 100644
--- a/storage/myisam/ha_myisam.cc
+++ b/storage/myisam/ha_myisam.cc
@@ -1859,6 +1859,7 @@ int ha_myisam::create(const char *name, register TABLE *table_arg,
share->avg_row_length);
create_info.data_file_name= ha_create_info->data_file_name;
create_info.index_file_name= ha_create_info->index_file_name;
+ create_info.language= share->table_charset->number;
if (ha_create_info->options & HA_LEX_CREATE_TMP_TABLE)
create_flags|= HA_CREATE_TMP_TABLE;