1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Preparation to thread specific default charset

This commit is contained in:
bar@bar.mysql.r18.ru
2002-10-30 13:05:27 +04:00
parent c20b489167
commit fef10d9bb1
4 changed files with 5 additions and 3 deletions

View File

@ -592,7 +592,7 @@ bool mysql_change_db(THD *thd, const char *name)
strmov(path+unpack_dirname(path,path), MY_DB_OPT_FILE);
load_db_opt(path, &create);
thd->db_charset=create.table_charset;
thd->thd_charset=thd->db_charset ? thd->db_charset : default_charset_info;
DBUG_RETURN(0);
}