Commit 192fcb9c authored by hf@deer.(none)'s avatar hf@deer.(none)

Bug fixed

null_string wasn't known in libmysqld/lib_sql.cc, that caused compiler's error
i put the declaration of the null_string in mysql_priv.h and renamed it
to my_null_string to reduce the probability of name's intersections
parent 5077ea0e
...@@ -752,7 +752,7 @@ bool setup_params_data_withlog(st_prep_stmt *stmt) ...@@ -752,7 +752,7 @@ bool setup_params_data_withlog(st_prep_stmt *stmt)
if (*client_param->is_null) if (*client_param->is_null)
{ {
param->maybe_null= param->null_value= 1; param->maybe_null= param->null_value= 1;
res= &null_string; res= &my_null_string;
} }
else else
{ {
......
...@@ -799,6 +799,7 @@ extern I_List<NAMED_LIST> key_caches; ...@@ -799,6 +799,7 @@ extern I_List<NAMED_LIST> key_caches;
extern MY_BITMAP temp_pool; extern MY_BITMAP temp_pool;
extern DATE_FORMAT dayord; extern DATE_FORMAT dayord;
extern String my_empty_string; extern String my_empty_string;
extern String my_null_string;
extern SHOW_VAR init_vars[],status_vars[], internal_vars[]; extern SHOW_VAR init_vars[],status_vars[], internal_vars[];
extern struct show_table_type_st table_type_vars[]; extern struct show_table_type_st table_type_vars[];
extern SHOW_COMP_OPTION have_isam; extern SHOW_COMP_OPTION have_isam;
......
...@@ -76,7 +76,7 @@ Long data handling: ...@@ -76,7 +76,7 @@ Long data handling:
#define STMT_QUERY_LOG_LENGTH 8192 #define STMT_QUERY_LOG_LENGTH 8192
String null_string("NULL", 4, default_charset_info); String my_null_string("NULL", 4, default_charset_info);
/* /*
Find prepared statement in thd Find prepared statement in thd
...@@ -428,7 +428,7 @@ static bool insert_params_withlog(PREP_STMT *stmt, uchar *pos, uchar *read_pos) ...@@ -428,7 +428,7 @@ static bool insert_params_withlog(PREP_STMT *stmt, uchar *pos, uchar *read_pos)
if (IS_PARAM_NULL(pos,param_no)) if (IS_PARAM_NULL(pos,param_no))
{ {
param->maybe_null= param->null_value= 1; param->maybe_null= param->null_value= 1;
res= &null_string; res= &my_null_string;
} }
else else
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment