post-merge fixes to make it compile. It still fails the fulltext test,

 (wrong error code) but I'll push it so that Sergei could clean up
 my merge
parent 72671338
...@@ -216,5 +216,5 @@ ...@@ -216,5 +216,5 @@
#define ER_ERROR_WHEN_EXECUTING_COMMAND 1213 #define ER_ERROR_WHEN_EXECUTING_COMMAND 1213
#define ER_WRONG_USAGE 1214 #define ER_WRONG_USAGE 1214
#define ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT 1215 #define ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT 1215
#define ER_NO_PERSMISSION_TO_CREATE_USER 1216 #define ER_NO_PERMISSION_TO_CREATE_USER 1216
#define ER_ERROR_MESSAGES 217 #define ER_ERROR_MESSAGES 217
...@@ -111,31 +111,6 @@ DateOfAction TransactionID ...@@ -111,31 +111,6 @@ DateOfAction TransactionID
member_id nickname voornaam member_id nickname voornaam
1 1
2 2
gid sid uid
104620 5 15
103867 5 27
103962 5 27
104619 5 75
104505 5 117
103853 5 250
gid sid uid
104620 5 15
103867 5 27
103962 5 27
104619 5 75
104505 5 117
103853 5 250
table type possible_keys key key_len ref rows Extra
t1 index PRIMARY PRIMARY 4 NULL 6 Using index
t2 eq_ref PRIMARY,uid PRIMARY 4 t1.gid 1
t3 eq_ref PRIMARY PRIMARY 2 t2.uid 1 where used; Using index
table type possible_keys key key_len ref rows Extra
t1 index PRIMARY PRIMARY 4 NULL 6 Using index
t3 eq_ref PRIMARY PRIMARY 2 t1.gid 1 where used
table type possible_keys key key_len ref rows Extra
t1 index PRIMARY PRIMARY 4 NULL 6 Using index; Using temporary; Using filesort
t2 eq_ref PRIMARY,uid PRIMARY 4 t1.gid 1
t3 eq_ref PRIMARY PRIMARY 2 t2.uid 1 where used; Using index
table type possible_keys key key_len ref rows Extra table type possible_keys key key_len ref rows Extra
t1 range a a 20 NULL 2 where used; Using index t1 range a a 20 NULL 2 where used; Using index
a b c a b c
...@@ -252,3 +227,34 @@ a b c ...@@ -252,3 +227,34 @@ a b c
1 1 1 1
1 0 b 1 0 b
1 0 1 0
gid sid uid
104620 5 15
103867 5 27
103962 5 27
104619 5 75
104505 5 117
103853 5 250
gid sid uid
104620 5 15
103867 5 27
103962 5 27
104619 5 75
104505 5 117
103853 5 250
table type possible_keys key key_len ref rows Extra
t1 index PRIMARY PRIMARY 4 NULL 6 Using index
t2 eq_ref PRIMARY,uid PRIMARY 4 t1.gid 1
t3 eq_ref PRIMARY PRIMARY 2 t2.uid 1 where used; Using index
table type possible_keys key key_len ref rows Extra
t1 index PRIMARY PRIMARY 4 NULL 6 Using index
t3 eq_ref PRIMARY PRIMARY 2 t1.gid 1 where used
table type possible_keys key key_len ref rows Extra
t1 index PRIMARY PRIMARY 4 NULL 6 Using index; Using temporary; Using filesort
t2 eq_ref PRIMARY,uid PRIMARY 4 t1.gid 1
t3 eq_ref PRIMARY PRIMARY 2 t2.uid 1 where used; Using index
table type possible_keys key key_len ref rows Extra
t1 index PRIMARY PRIMARY 4 NULL 6 Using index; Using temporary; Using filesort
t3 eq_ref PRIMARY PRIMARY 2 t1.gid 1 where used
table type possible_keys key key_len ref rows Extra
t1 ALL NULL NULL NULL NULL 6 Using temporary; Using filesort
t3 eq_ref PRIMARY PRIMARY 2 t1.skr 1 where used
...@@ -80,7 +80,7 @@ mysqld_SOURCES = sql_lex.cc sql_handler.cc \ ...@@ -80,7 +80,7 @@ mysqld_SOURCES = sql_lex.cc sql_handler.cc \
sql_db.cc sql_table.cc sql_rename.cc sql_crypt.cc \ sql_db.cc sql_table.cc sql_rename.cc sql_crypt.cc \
sql_load.cc mf_iocache.cc field_conv.cc sql_show.cc \ sql_load.cc mf_iocache.cc field_conv.cc sql_show.cc \
sql_udf.cc sql_analyse.cc sql_analyse.h sql_cache.cc \ sql_udf.cc sql_analyse.cc sql_analyse.h sql_cache.cc \
slave.cc sql_repl.cc \ slave.cc sql_repl.cc sql_union.cc \
mini_client.cc mini_client_errors.c \ mini_client.cc mini_client_errors.c \
md5.c stacktrace.c md5.c stacktrace.c
gen_lex_hash_SOURCES = gen_lex_hash.cc gen_lex_hash_SOURCES = gen_lex_hash.cc
......
...@@ -555,13 +555,14 @@ extern ulong keybuff_size,sortbuff_size,max_item_sort_length,table_cache_size, ...@@ -555,13 +555,14 @@ extern ulong keybuff_size,sortbuff_size,max_item_sort_length,table_cache_size,
max_insert_delayed_threads, max_user_connections, max_insert_delayed_threads, max_user_connections,
long_query_count,net_wait_timeout,net_interactive_timeout, long_query_count,net_wait_timeout,net_interactive_timeout,
net_read_timeout,net_write_timeout, net_read_timeout,net_write_timeout,
what_to_log,flush_time, what_to_log,flush_time,opt_sql_mode,
max_tmp_tables,max_heap_table_size,query_buff_size, max_tmp_tables,max_heap_table_size,query_buff_size,
lower_case_table_names,thread_stack,thread_stack_min, lower_case_table_names,thread_stack,thread_stack_min,
binlog_cache_size, max_binlog_cache_size; binlog_cache_size, max_binlog_cache_size,record_rnd_cache_size;
extern ulong specialflag, current_pid; extern ulong specialflag, current_pid;
extern bool low_priority_updates, using_update_log; extern bool low_priority_updates, using_update_log;
extern bool opt_sql_bin_update, opt_safe_show_db, opt_warnings; extern bool opt_sql_bin_update, opt_safe_show_db, opt_warnings,
opt_safe_user_create;
extern char language[LIBLEN],reg_ext[FN_EXTLEN],blob_newline; extern char language[LIBLEN],reg_ext[FN_EXTLEN],blob_newline;
extern const char **errmesg; /* Error messages */ extern const char **errmesg; /* Error messages */
extern const char *default_tx_isolation_name; extern const char *default_tx_isolation_name;
......
...@@ -223,7 +223,8 @@ static bool opt_log,opt_update_log,opt_bin_log,opt_slow_log,opt_noacl, ...@@ -223,7 +223,8 @@ static bool opt_log,opt_update_log,opt_bin_log,opt_slow_log,opt_noacl,
opt_myisam_log=0, opt_myisam_log=0,
opt_large_files=sizeof(my_off_t) > 4; opt_large_files=sizeof(my_off_t) > 4;
bool opt_sql_bin_update = 0, opt_log_slave_updates = 0, opt_safe_show_db=0, bool opt_sql_bin_update = 0, opt_log_slave_updates = 0, opt_safe_show_db=0,
opt_show_slave_auth_info = 0, opt_old_rpl_compat = 0; opt_show_slave_auth_info = 0, opt_old_rpl_compat = 0,
opt_safe_user_create = 0;
FILE *bootstrap_file=0; FILE *bootstrap_file=0;
int segfaulted = 0; // ensure we do not enter SIGSEGV handler twice int segfaulted = 0; // ensure we do not enter SIGSEGV handler twice
extern MASTER_INFO glob_mi; extern MASTER_INFO glob_mi;
...@@ -271,7 +272,7 @@ ulong keybuff_size,sortbuff_size,max_item_sort_length,table_cache_size, ...@@ -271,7 +272,7 @@ ulong keybuff_size,sortbuff_size,max_item_sort_length,table_cache_size,
query_buff_size, lower_case_table_names, mysqld_net_retry_count, query_buff_size, lower_case_table_names, mysqld_net_retry_count,
net_interactive_timeout, slow_launch_time = 2L, net_interactive_timeout, slow_launch_time = 2L,
net_read_timeout,net_write_timeout,slave_open_temp_tables=0, net_read_timeout,net_write_timeout,slave_open_temp_tables=0,
open_files_limit=0, max_binlog_size; open_files_limit=0, max_binlog_size, record_rnd_cache_size;
ulong slave_net_timeout; ulong slave_net_timeout;
ulong thread_cache_size=0, binlog_cache_size=0, max_binlog_cache_size=0; ulong thread_cache_size=0, binlog_cache_size=0, max_binlog_cache_size=0;
volatile ulong cached_thread_count=0; volatile ulong cached_thread_count=0;
...@@ -2531,7 +2532,7 @@ enum options { ...@@ -2531,7 +2532,7 @@ enum options {
OPT_REPORT_USER, OPT_REPORT_PASSWORD, OPT_REPORT_PORT, OPT_REPORT_USER, OPT_REPORT_PASSWORD, OPT_REPORT_PORT,
OPT_MAX_BINLOG_DUMP_EVENTS, OPT_SPORADIC_BINLOG_DUMP_FAIL, OPT_MAX_BINLOG_DUMP_EVENTS, OPT_SPORADIC_BINLOG_DUMP_FAIL,
OPT_SHOW_SLAVE_AUTH_INFO, OPT_OLD_RPL_COMPAT, OPT_SHOW_SLAVE_AUTH_INFO, OPT_OLD_RPL_COMPAT,
OPT_SQL_MODE, OPT_SQL_MODE,OPT_SAFE_USER_CREATE,
OPT_SLAVE_LOAD_TMPDIR}; OPT_SLAVE_LOAD_TMPDIR};
static struct option long_options[] = { static struct option long_options[] = {
......
...@@ -226,3 +226,4 @@ ...@@ -226,3 +226,4 @@
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
"Wrong usage of %s and %s", "Wrong usage of %s and %s",
"The used SELECT statements have a different number of columns", "The used SELECT statements have a different number of columns",
"%-.32s@%-.64s is not allowed to create new users",
...@@ -220,3 +220,4 @@ ...@@ -220,3 +220,4 @@
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
"Wrong usage of %s and %s", "Wrong usage of %s and %s",
"The used SELECT statements have a different number of columns", "The used SELECT statements have a different number of columns",
"%-.32s@%-.64s is not allowed to create new users",
...@@ -217,3 +217,4 @@ ...@@ -217,3 +217,4 @@
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
"Wrong usage of %s and %s", "Wrong usage of %s and %s",
"The used SELECT statements have a different number of columns", "The used SELECT statements have a different number of columns",
"%-.32s@%-.64s is not allowed to create new users",
...@@ -217,3 +217,4 @@ ...@@ -217,3 +217,4 @@
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
"Wrong usage of %s and %s", "Wrong usage of %s and %s",
"The used SELECT statements have a different number of columns", "The used SELECT statements have a different number of columns",
"%-.32s@%-.64s is not allowed to create new users",
...@@ -221,3 +221,4 @@ ...@@ -221,3 +221,4 @@
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
"Wrong usage of %s and %s", "Wrong usage of %s and %s",
"The used SELECT statements have a different number of columns", "The used SELECT statements have a different number of columns",
"%-.32s@%-.64s is not allowed to create new users",
...@@ -217,3 +217,4 @@ ...@@ -217,3 +217,4 @@
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
"Wrong usage of %s and %s", "Wrong usage of %s and %s",
"The used SELECT statements have a different number of columns", "The used SELECT statements have a different number of columns",
"%-.32s@%-.64s is not allowed to create new users",
...@@ -220,3 +220,4 @@ ...@@ -220,3 +220,4 @@
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
"Wrong usage of %s and %s", "Wrong usage of %s and %s",
"The used SELECT statements have a different number of columns", "The used SELECT statements have a different number of columns",
"%-.32s@%-.64s is not allowed to create new users",
...@@ -217,3 +217,4 @@ ...@@ -217,3 +217,4 @@
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
"Wrong usage of %s and %s", "Wrong usage of %s and %s",
"The used SELECT statements have a different number of columns", "The used SELECT statements have a different number of columns",
"%-.32s@%-.64s is not allowed to create new users",
...@@ -219,3 +219,4 @@ ...@@ -219,3 +219,4 @@
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
"Wrong usage of %s and %s", "Wrong usage of %s and %s",
"The used SELECT statements have a different number of columns", "The used SELECT statements have a different number of columns",
"%-.32s@%-.64s is not allowed to create new users",
...@@ -217,3 +217,4 @@ ...@@ -217,3 +217,4 @@
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
"Wrong usage of %s and %s", "Wrong usage of %s and %s",
"The used SELECT statements have a different number of columns", "The used SELECT statements have a different number of columns",
"%-.32s@%-.64s is not allowed to create new users",
...@@ -219,3 +219,4 @@ ...@@ -219,3 +219,4 @@
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
"Wrong usage of %s and %s", "Wrong usage of %s and %s",
"The used SELECT statements have a different number of columns", "The used SELECT statements have a different number of columns",
"%-.32s@%-.64s is not allowed to create new users",
...@@ -217,3 +217,4 @@ ...@@ -217,3 +217,4 @@
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
"Wrong usage of %s and %s", "Wrong usage of %s and %s",
"The used SELECT statements have a different number of columns", "The used SELECT statements have a different number of columns",
"%-.32s@%-.64s is not allowed to create new users",
...@@ -219,3 +219,4 @@ ...@@ -219,3 +219,4 @@
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
"Wrong usage of %s and %s", "Wrong usage of %s and %s",
"The used SELECT statements have a different number of columns", "The used SELECT statements have a different number of columns",
"%-.32s@%-.64s is not allowed to create new users",
...@@ -219,3 +219,4 @@ ...@@ -219,3 +219,4 @@
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
"Wrong usage of %s and %s", "Wrong usage of %s and %s",
"The used SELECT statements have a different number of columns", "The used SELECT statements have a different number of columns",
"%-.32s@%-.64s is not allowed to create new users",
...@@ -221,3 +221,4 @@ ...@@ -221,3 +221,4 @@
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
"Wrong usage of %s and %s", "Wrong usage of %s and %s",
"The used SELECT statements have a different number of columns", "The used SELECT statements have a different number of columns",
"%-.32s@%-.64s is not allowed to create new users",
...@@ -217,3 +217,4 @@ ...@@ -217,3 +217,4 @@
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
"Wrong usage of %s and %s", "Wrong usage of %s and %s",
"The used SELECT statements have a different number of columns", "The used SELECT statements have a different number of columns",
"%-.32s@%-.64s is not allowed to create new users",
...@@ -221,3 +221,4 @@ ...@@ -221,3 +221,4 @@
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
"Wrong usage of %s and %s", "Wrong usage of %s and %s",
"The used SELECT statements have a different number of columns", "The used SELECT statements have a different number of columns",
"%-.32s@%-.64s is not allowed to create new users",
...@@ -220,3 +220,4 @@ ...@@ -220,3 +220,4 @@
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
"Wrong usage of %s and %s", "Wrong usage of %s and %s",
"The used SELECT statements have a different number of columns", "The used SELECT statements have a different number of columns",
"%-.32s@%-.64s is not allowed to create new users",
...@@ -225,3 +225,4 @@ ...@@ -225,3 +225,4 @@
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
"Wrong usage of %s and %s", "Wrong usage of %s and %s",
"The used SELECT statements have a different number of columns", "The used SELECT statements have a different number of columns",
"%-.32s@%-.64s is not allowed to create new users",
...@@ -218,3 +218,4 @@ ...@@ -218,3 +218,4 @@
"Error de %s: %-128%", "Error de %s: %-128%",
"Wrong usage of %s and %s", "Wrong usage of %s and %s",
"The used SELECT statements have a different number of columns", "The used SELECT statements have a different number of columns",
"%-.32s@%-.64s is not allowed to create new users",
...@@ -217,3 +217,4 @@ ...@@ -217,3 +217,4 @@
"Fick fel vid utförande av %s: %-.128s", "Fick fel vid utförande av %s: %-.128s",
"Felaktig använding av %s and %s", "Felaktig använding av %s and %s",
"SELECT kommandona har olika antal kolumner" "SELECT kommandona har olika antal kolumner"
"%-.32s@%-.64s is not allowed to create new users",
...@@ -1003,8 +1003,8 @@ static int replace_user_table(TABLE *table, const LEX_USER &combo, ...@@ -1003,8 +1003,8 @@ static int replace_user_table(TABLE *table, const LEX_USER &combo,
my_printf_error(ER_NONEXISTING_GRANT,ER(ER_NONEXISTING_GRANT), my_printf_error(ER_NONEXISTING_GRANT,ER(ER_NONEXISTING_GRANT),
MYF(0),combo.user.str,combo.host.str); MYF(0),combo.user.str,combo.host.str);
else else
my_printf_error(ER_NO_PERMISSON_TO_CREATE_USER, my_printf_error(ER_NO_PERMISSION_TO_CREATE_USER,
ER(ER_NO_PERMISSON_TO_CREATE_USER), ER(ER_NO_PERMISSION_TO_CREATE_USER),
MYF(0),thd->user, MYF(0),thd->user,
thd->host ? thd->host : thd->ip ? thd->ip: ""); thd->host ? thd->host : thd->ip ? thd->ip: "");
error= -1; error= -1;
......
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