mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-5314 - Compiling fails on OSX using clang
This is port of fix for MySQL BUG#17647863. revno: 5572 revision-id: jon.hauglid@oracle.com-20131030232243-b0pw98oy72uka2sj committer: Jon Olav Hauglid <jon.hauglid@oracle.com> timestamp: Thu 2013-10-31 00:22:43 +0100 message: Bug#17647863: MYSQL DOES NOT COMPILE ON OSX 10.9 GM Rename test() macro to MY_TEST() to avoid conflict with libc++.
This commit is contained in:
@ -140,7 +140,7 @@ void Update_plan::save_explain_data_intern(Explain_query *query,
|
||||
explain->jtype= JT_NEXT;
|
||||
}
|
||||
|
||||
explain->using_where= test(select && select->cond);
|
||||
explain->using_where= MY_TEST(select && select->cond);
|
||||
explain->using_filesort= using_filesort;
|
||||
explain->using_io_buffer= using_io_buffer;
|
||||
|
||||
@ -252,7 +252,7 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
|
||||
table->map=1;
|
||||
query_plan.select_lex= &thd->lex->select_lex;
|
||||
query_plan.table= table;
|
||||
query_plan.updating_a_view= test(table_list->view);
|
||||
query_plan.updating_a_view= MY_TEST(table_list->view);
|
||||
|
||||
if (mysql_prepare_delete(thd, table_list, select_lex->with_wild,
|
||||
select_lex->item_list, &conds))
|
||||
@ -291,7 +291,7 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
|
||||
DBUG_RETURN(TRUE);
|
||||
|
||||
const_cond= (!conds || conds->const_item());
|
||||
safe_update=test(thd->variables.option_bits & OPTION_SAFE_UPDATES);
|
||||
safe_update= MY_TEST(thd->variables.option_bits & OPTION_SAFE_UPDATES);
|
||||
if (safe_update && const_cond)
|
||||
{
|
||||
my_message(ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE,
|
||||
|
Reference in New Issue
Block a user