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:
@ -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)
|
||||
|
Reference in New Issue
Block a user