~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/mysql_priv.h

Removed/replaced DBUG symbols and standardized TRUE/FALSE

Show diffs side-by-side

added added

removed removed

Lines of Context:
835
835
  if (_db_strict_keyword_ (dbug_str))
836
836
  {
837
837
    strxmov(total_str, extra_str, dbug_str, NullS);
838
 
    DBUG_SET(total_str);
839
838
    return 1;
840
839
  }
841
840
  return 0;
869
868
 
870
869
  ERROR_INJECT_CRASH will inject a crash of the MySQL Server if code
871
870
  is set when macro is called. ERROR_INJECT_CRASH can be used in
872
 
  if-statements, it will always return FALSE unless of course it
 
871
  if-statements, it will always return false unless of course it
873
872
  crashes in which case it doesn't return at all.
874
873
 
875
874
  ERROR_INJECT_ACTION will inject the action specified in the action
1369
1368
                                      bool allow_sum_func)
1370
1369
{
1371
1370
  bool res;
1372
 
  thd->lex->select_lex.no_wrap_view_item= TRUE;
 
1371
  thd->lex->select_lex.no_wrap_view_item= true;
1373
1372
  res= setup_fields(thd, ref_pointer_array, item, mark_used_columns, sum_func_list,
1374
1373
                    allow_sum_func);
1375
 
  thd->lex->select_lex.no_wrap_view_item= FALSE;
 
1374
  thd->lex->select_lex.no_wrap_view_item= false;
1376
1375
  return res;
1377
1376
}
1378
1377
int setup_conds(THD *thd, TABLE_LIST *tables, TABLE_LIST *leaves,
1387
1386
/* simple open_and_lock_tables without derived handling */
1388
1387
inline int simple_open_n_lock_tables(THD *thd, TABLE_LIST *tables)
1389
1388
{
1390
 
  return open_and_lock_tables_derived(thd, tables, FALSE);
 
1389
  return open_and_lock_tables_derived(thd, tables, false);
1391
1390
}
1392
1391
/* open_and_lock_tables with derived handling */
1393
1392
inline int open_and_lock_tables(THD *thd, TABLE_LIST *tables)
1394
1393
{
1395
 
  return open_and_lock_tables_derived(thd, tables, TRUE);
 
1394
  return open_and_lock_tables_derived(thd, tables, true);
1396
1395
}
1397
1396
/* simple open_and_lock_tables without derived handling for single table */
1398
1397
TABLE *open_n_lock_single_table(THD *thd, TABLE_LIST *table_l,
1541
1540
                         bool wait_for_refresh, bool wait_for_placeholders);
1542
1541
bool close_cached_connection_tables(THD *thd, bool wait_for_refresh,
1543
1542
                                    LEX_STRING *connect_string,
1544
 
                                    bool have_lock = FALSE);
 
1543
                                    bool have_lock= false);
1545
1544
void copy_field_from_tmp_record(Field *field,int offset);
1546
1545
bool fill_record(THD * thd, List<Item> &fields, List<Item> &values, bool ignore_errors);
1547
1546
bool fill_record(THD *thd, Field **field, List<Item> &values, bool ignore_errors);
1584
1583
 
1585
1584
 
1586
1585
/* sql_test.cc */
1587
 
#ifndef DBUG_OFF
1588
1586
void print_where(COND *cond,const char *info, enum_query_type query_type);
1589
1587
void print_cached_tables(void);
1590
1588
void TEST_filesort(SORT_FIELD *sortorder,uint s_length);
1591
1589
void print_plan(JOIN* join,uint idx, double record_count, double read_time,
1592
1590
                double current_read_time, const char *info);
1593
1591
void print_keyuse_array(DYNAMIC_ARRAY *keyuse_array);
1594
 
#define EXTRA_DEBUG_DUMP_TABLE_LISTS
1595
 
#ifdef EXTRA_DEBUG_DUMP_TABLE_LISTS
1596
1592
void dump_TABLE_LIST_graph(SELECT_LEX *select_lex, TABLE_LIST* tl);
1597
 
#endif
1598
 
#endif
1599
1593
void mysql_print_status();
1600
1594
 
1601
1595
/* key.cc */
2047
2041
void free_list(I_List <i_string> *list);
2048
2042
 
2049
2043
/* sql_yacc.cc */
2050
 
#ifndef DBUG_OFF
2051
2044
extern void turn_parser_debug_on();
2052
 
#endif
2053
2045
 
2054
2046
/* Some inline functions for more speed */
2055
2047