1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Database default charset now works:

CREATE DATABASE dbname DEFAULT CHARACTERSET=latin1
This commit is contained in:
bar@gw.udmsearch.izhnet.ru
2002-06-24 21:50:08 +05:00
parent 5b45ebe812
commit 97d9936f5d
5 changed files with 45 additions and 9 deletions

View File

@ -377,7 +377,9 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
auto_increment++;
if(!sql_field->charset)
sql_field->charset = create_info->table_charset ?
create_info->table_charset : default_charset_info;
create_info->table_charset :
thd->db_charset? thd->db_charset :
default_charset_info;
pos+=sql_field->pack_length;
}
if (auto_increment > 1)