Commit e0f1e6af authored by monty@mysql.com's avatar monty@mysql.com

Portability fix for gcc 2.95.3

After merge fixes
parent d164fc43
...@@ -174,10 +174,12 @@ select a from t1 order by a; ...@@ -174,10 +174,12 @@ select a from t1 order by a;
a a
16 16
18 18
master-bin.000001 79 Query 1 79 use `test`; BEGIN show binlog events from 95;
master-bin.000001 119 Query 1 79 use `test`; insert into t1 values(16) Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 179 Query 1 79 use `test`; insert into t1 values(18) master-bin.000001 95 Query 1 # use `test`; BEGIN
master-bin.000001 239 Query 1 239 use `test`; COMMIT master-bin.000001 157 Query 1 # use `test`; insert into t1 values(16)
master-bin.000001 239 Query 1 # use `test`; insert into t1 values(18)
master-bin.000001 321 Query 1 # use `test`; COMMIT
delete from t1; delete from t1;
delete from t2; delete from t2;
alter table t2 type=MyISAM; alter table t2 type=MyISAM;
......
...@@ -85,7 +85,8 @@ struct handle_option_ctx ...@@ -85,7 +85,8 @@ struct handle_option_ctx
static int search_default_file(Process_option_func func, void *func_ctx, static int search_default_file(Process_option_func func, void *func_ctx,
const char *dir, const char *config_file); const char *dir, const char *config_file);
static int search_default_file_with_ext(DYNAMIC_ARRAY *args, MEM_ROOT *alloc, static int search_default_file_with_ext(Process_option_func func,
void *func_ctx,
const char *dir, const char *ext, const char *dir, const char *ext,
const char *config_file); const char *config_file);
......
...@@ -649,8 +649,8 @@ bool drop_locked_tables(THD *thd,const char *db, const char *table_name); ...@@ -649,8 +649,8 @@ bool drop_locked_tables(THD *thd,const char *db, const char *table_name);
void abort_locked_tables(THD *thd,const char *db, const char *table_name); void abort_locked_tables(THD *thd,const char *db, const char *table_name);
void execute_init_command(THD *thd, sys_var_str *init_command_var, void execute_init_command(THD *thd, sys_var_str *init_command_var,
rw_lock_t *var_mutex); rw_lock_t *var_mutex);
extern const Field *not_found_field; extern Field *not_found_field;
extern const Field *view_ref_found; extern Field *view_ref_found;
enum find_item_error_report_type {REPORT_ALL_ERRORS, REPORT_EXCEPT_NOT_FOUND, enum find_item_error_report_type {REPORT_ALL_ERRORS, REPORT_EXCEPT_NOT_FOUND,
IGNORE_ERRORS, REPORT_EXCEPT_NON_UNIQUE, IGNORE_ERRORS, REPORT_EXCEPT_NON_UNIQUE,
...@@ -776,7 +776,7 @@ TABLE *unlink_open_table(THD *thd,TABLE *list,TABLE *find); ...@@ -776,7 +776,7 @@ TABLE *unlink_open_table(THD *thd,TABLE *list,TABLE *find);
SQL_SELECT *make_select(TABLE *head, table_map const_tables, SQL_SELECT *make_select(TABLE *head, table_map const_tables,
table_map read_tables, COND *conds, int *error, table_map read_tables, COND *conds, int *error,
bool allow_null_cond= false); bool allow_null_cond= false);
extern const Item **not_found_item; extern Item **not_found_item;
Item ** find_item_in_list(Item *item, List<Item> &items, uint *counter, Item ** find_item_in_list(Item *item, List<Item> &items, uint *counter,
find_item_error_report_type report_error, find_item_error_report_type report_error,
bool *unaliased); bool *unaliased);
......
...@@ -2045,8 +2045,8 @@ bool rm_temporary_table(enum db_type base, char *path) ...@@ -2045,8 +2045,8 @@ bool rm_temporary_table(enum db_type base, char *path)
******************************************************************************/ ******************************************************************************/
/* Special Field pointers for find_field_in_tables returning */ /* Special Field pointers for find_field_in_tables returning */
const Field *not_found_field= (Field*) 0x1; Field *not_found_field= (Field*) 0x1;
const Field *view_ref_found= (Field*) 0x2; Field *view_ref_found= (Field*) 0x2;
#define WRONG_GRANT (Field*) -1 #define WRONG_GRANT (Field*) -1
...@@ -2447,7 +2447,7 @@ find_field_in_tables(THD *thd, Item_ident *item, TABLE_LIST *tables, ...@@ -2447,7 +2447,7 @@ find_field_in_tables(THD *thd, Item_ident *item, TABLE_LIST *tables,
*/ */
/* Special Item pointer to serve as a return value from find_item_in_list(). */ /* Special Item pointer to serve as a return value from find_item_in_list(). */
const Item **not_found_item= (const Item**) 0x1; Item **not_found_item= (Item**) 0x1;
Item ** Item **
......
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