1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Preparation to thread specific default charset

This commit is contained in:
unknown
2002-10-30 13:05:27 +04:00
parent 75dc4d5ce5
commit e086000f19
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);
}