mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge bk-internal.mysql.com:/home/bk/mysql-5.1
into janus.mylan:/usr/home/serg/Abk/mysql-5.1
This commit is contained in:
@@ -1330,6 +1330,7 @@ static void plugin_load(MEM_ROOT *tmp_root, int *argc, char **argv)
|
||||
}
|
||||
new_thd->thread_stack= (char*) &tables;
|
||||
new_thd->store_globals();
|
||||
lex_start(new_thd);
|
||||
new_thd->db= my_strdup("mysql", MYF(0));
|
||||
new_thd->db_length= 5;
|
||||
bzero((uchar*)&tables, sizeof(tables));
|
||||
@@ -1945,7 +1946,7 @@ static int check_func_enum(THD *thd, struct st_mysql_sys_var *var,
|
||||
length= sizeof(buff);
|
||||
if (!(str= value->val_str(value, buff, &length)))
|
||||
goto err;
|
||||
if ((result= find_type(typelib, str, length, 1)-1) < 0)
|
||||
if ((result= (long)find_type(typelib, str, length, 1)-1) < 0)
|
||||
{
|
||||
strvalue= str;
|
||||
goto err;
|
||||
|
Reference in New Issue
Block a user