diff options
author | bar@bar.mysql.r18.ru <> | 2003-09-15 16:31:04 +0500 |
---|---|---|
committer | bar@bar.mysql.r18.ru <> | 2003-09-15 16:31:04 +0500 |
commit | 1d20c09ce94e8897079278aee293c151a6aa5513 (patch) | |
tree | 0a3a1a25f4afbbef712e5f85b5de3d6ebbcebeb4 /sql/sql_db.cc | |
parent | 8d05911df07d15c8b41344a7509b6e0bc3b2bc82 (diff) | |
download | mariadb-git-1d20c09ce94e8897079278aee293c151a6aa5513.tar.gz |
New SQL variables "collation_server" and "collation_database"
Diffstat (limited to 'sql/sql_db.cc')
-rw-r--r-- | sql/sql_db.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sql/sql_db.cc b/sql/sql_db.cc index 0d0d1d897d0..2b42c2c9a5b 100644 --- a/sql/sql_db.cc +++ b/sql/sql_db.cc @@ -62,7 +62,7 @@ static bool write_db_opt(THD *thd, const char *path, HA_CREATE_INFO *create) ulong length; CHARSET_INFO *cs= (create && create->table_charset) ? create->table_charset : - thd->variables.character_set_database; + thd->variables.collation_database; length= my_sprintf(buf,(buf, "default-character-set=%s\ndefault-collation=%s\n", cs->csname,cs->name)); /* Error is written by my_write */ @@ -99,7 +99,7 @@ static bool load_db_opt(THD *thd, const char *path, HA_CREATE_INFO *create) uint nbytes; bzero((char*) create,sizeof(*create)); - create->table_charset= global_system_variables.character_set_database; + create->table_charset= global_system_variables.collation_database; if ((file=my_open(path, O_RDONLY | O_SHARE, MYF(0))) >= 0) { IO_CACHE cache; @@ -288,8 +288,8 @@ int mysql_alter_db(THD *thd, const char *db, HA_CREATE_INFO *create_info) { thd->db_charset= (create_info && create_info->table_charset) ? create_info->table_charset : - global_system_variables.character_set_database; - thd->variables.character_set_database= thd->db_charset; + global_system_variables.collation_database; + thd->variables.collation_database= thd->db_charset; } mysql_update_log.write(thd,thd->query, thd->query_length); @@ -632,8 +632,8 @@ bool mysql_change_db(THD *thd, const char *name) load_db_opt(thd, path, &create); thd->db_charset= create.table_charset ? create.table_charset : - global_system_variables.character_set_database; - thd->variables.character_set_database= thd->db_charset; + global_system_variables.collation_database; + thd->variables.collation_database= thd->db_charset; DBUG_RETURN(0); } |