Commit a30dffeb authored by unknown's avatar unknown

Merge work:/home/bk/mysql-4.0 into hundin.mysql.fi:/my/bk/mysql-4.0


sql/mysqld.cc:
  Auto merged
parents 2a645451 242a3755
...@@ -259,6 +259,7 @@ inline double ulonglong2double(ulonglong value) ...@@ -259,6 +259,7 @@ inline double ulonglong2double(ulonglong value)
#define HAVE_ISNAN #define HAVE_ISNAN
#define HAVE_FINITE #define HAVE_FINITE
#define HAVE_ISAM /* We want to have support for ISAM in 4.0 */ #define HAVE_ISAM /* We want to have support for ISAM in 4.0 */
#define SPRINTF_RETURNS_INT
#ifdef NOT_USED #ifdef NOT_USED
#define HAVE_SNPRINTF /* Gave link error */ #define HAVE_SNPRINTF /* Gave link error */
......
...@@ -1016,7 +1016,7 @@ typedef union { ...@@ -1016,7 +1016,7 @@ typedef union {
#ifdef SPRINTF_RETURNS_PTR #ifdef SPRINTF_RETURNS_PTR
#define my_sprintf(buff,args) ((int)(sprintf args - buff)) #define my_sprintf(buff,args) ((int)(sprintf args - buff))
#else #else
#define my_sprintf(buff,args) sprintf args,strlen(buff) #define my_sprintf(buff,args) ((ulong) sprintf args, (ulong) strlen(buff))
#endif #endif
#endif #endif
......
...@@ -3339,7 +3339,7 @@ struct my_option my_long_options[] = ...@@ -3339,7 +3339,7 @@ struct my_option my_long_options[] =
#ifdef USE_SYMDIR #ifdef USE_SYMDIR
{"use-symbolic-links", 's', "Enable symbolic link support", {"use-symbolic-links", 's', "Enable symbolic link support",
(gptr*) &my_use_symdir, (gptr*) &my_use_symdir, 0, GET_BOOL, NO_ARG, (gptr*) &my_use_symdir, (gptr*) &my_use_symdir, 0, GET_BOOL, NO_ARG,
USE_PURIFY(0,1), 0, 0, 0, 0, 0}, IF_PURIFY(0,1), 0, 0, 0, 0, 0},
#endif #endif
{"user", 'u', "Run mysqld daemon as user", (gptr*) &mysqld_user, {"user", 'u', "Run mysqld daemon as user", (gptr*) &mysqld_user,
(gptr*) &mysqld_user, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, (gptr*) &mysqld_user, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
......
...@@ -1208,7 +1208,8 @@ void set_var_free() ...@@ -1208,7 +1208,8 @@ void set_var_free()
sys_var *find_sys_var(const char *str, uint length) sys_var *find_sys_var(const char *str, uint length)
{ {
sys_var *var= (sys_var*) hash_search(&system_variable_hash, str, sys_var *var= (sys_var*) hash_search(&system_variable_hash,
(byte*) str,
length ? length : length ? length :
strlen(str)); strlen(str));
if (!var) if (!var)
......
...@@ -3287,7 +3287,7 @@ option_value: ...@@ -3287,7 +3287,7 @@ option_value:
LEX *lex=Lex; LEX *lex=Lex;
lex->var_list.push_back(new set_var(lex->option_type, lex->var_list.push_back(new set_var(lex->option_type,
find_sys_var("tx_isolation"), find_sys_var("tx_isolation"),
new Item_int((int) $4))); new Item_int((int32) $4)));
} }
| CHAR_SYM SET opt_equal set_expr_or_default | CHAR_SYM SET opt_equal set_expr_or_default
{ {
......
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