diff options
author | unknown <hf@deer.mysql.r18.ru> | 2002-12-19 14:57:24 +0400 |
---|---|---|
committer | unknown <hf@deer.mysql.r18.ru> | 2002-12-19 14:57:24 +0400 |
commit | 1bc932384b2043a326f2ce71a4e71ac2aba47580 (patch) | |
tree | 49af941597a25a7ac4b9152abdbeba746334ac2e /sql/sql_parse.cc | |
parent | 74ec1c762154073fd611e1e2267d3dc76312abc4 (diff) | |
parent | ef9c22611960eb3e7ebf1d0e4a53f47e3ef62480 (diff) | |
download | mariadb-git-1bc932384b2043a326f2ce71a4e71ac2aba47580.tar.gz |
Merge
include/mysql_com.h:
Auto merged
sql/field.cc:
Auto merged
sql/field.h:
Auto merged
sql/item.cc:
Auto merged
sql/item_strfunc.cc:
Auto merged
sql/log.cc:
Auto merged
sql/log_event.cc:
Auto merged
sql/protocol.cc:
Auto merged
sql/set_var.h:
Auto merged
sql/sql_class.cc:
Auto merged
sql/sql_class.h:
Auto merged
sql/sql_db.cc:
Auto merged
sql/sql_parse.cc:
Auto merged
sql/sql_show.cc:
Auto merged
libmysqld/libmysqld.c:
e
merging with vva's code.
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index b3e44fe10b3..c3bdbabab60 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -23,6 +23,8 @@ #include <my_dir.h> #include <assert.h> +#define files_charset_info system_charset_info + #ifdef HAVE_INNOBASE_DB #include "ha_innodb.h" #endif @@ -1231,7 +1233,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd, break; } if (lower_case_table_names) - my_casedn_str(system_charset_info, db); + my_casedn_str(files_charset_info, db); if (check_access(thd,CREATE_ACL,db,0,1)) break; mysql_log.write(thd,command,packet); @@ -1249,7 +1251,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd, break; } if (lower_case_table_names) - my_casedn_str(system_charset_info, db); + my_casedn_str(files_charset_info, db); if (thd->locked_tables || thd->active_transaction()) { send_error(thd,ER_LOCK_OR_ACTIVE_TRANSACTION); @@ -2527,7 +2529,7 @@ mysql_execute_command(THD *thd) break; } if (lower_case_table_names) - my_casedn_str(system_charset_info, lex->name); + my_casedn_str(files_charset_info, lex->name); if (check_access(thd,CREATE_ACL,lex->name,0,1)) break; res=mysql_create_db(thd,lex->name,&lex->create_info,0); @@ -2541,7 +2543,7 @@ mysql_execute_command(THD *thd) break; } if (lower_case_table_names) - my_casedn_str(system_charset_info, lex->name); + my_casedn_str(files_charset_info, lex->name); if (check_access(thd,DROP_ACL,lex->name,0,1)) break; if (thd->locked_tables || thd->active_transaction()) @@ -2629,7 +2631,7 @@ mysql_execute_command(THD *thd) if (user->password.str && (strcmp(thd->user,user->user.str) || user->host.str && - my_strcasecmp(system_charset_info, + my_strcasecmp(my_charset_latin1, user->host.str, thd->host_or_ip))) { if (check_access(thd, UPDATE_ACL, "mysql",0,1)) @@ -3624,8 +3626,8 @@ TABLE_LIST *st_select_lex::add_table_to_list(THD *thd, ptr->alias= alias_str; if (lower_case_table_names) { - my_casedn_str(system_charset_info,ptr->db); - my_casedn_str(system_charset_info,table->table.str); + my_casedn_str(files_charset_info,ptr->db); + my_casedn_str(files_charset_info,table->table.str); } ptr->real_name=table->table.str; ptr->real_name_length=table->table.length; |