From 8aebd394b8dd392a538f5fca5e03b37d6fd30c34 Mon Sep 17 00:00:00 2001 From: "istruewing@stella.local" <> Date: Thu, 24 Jan 2008 18:56:42 +0100 Subject: 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. --- storage/myisam/ha_myisam.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'storage/myisam/ha_myisam.cc') 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; -- cgit v1.2.1