~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/base.h

  • Committer: Jay Pipes
  • Date: 2008-08-01 15:12:10 UTC
  • mto: (264.1.6 codestyle)
  • mto: This revision was merged to the branch mainline in revision 247.
  • Revision ID: jay@mysql.com-20080801151210-brw63alb22uvjte3
* Moved the Item factory creation functions into the item_create.h header, 
  where they belong

* Removed four dead functions:

lex_string_set()
load_charset()
load_collation()
init_fill_schema_files_row()

* Pulled schema_table_store_record() out to sql_show.h, though this
  really should be placed into an I_S specific thing once we get there...

Show diffs side-by-side

added added

removed removed

Lines of Context:
568
568
/* invalidator function reference for Query Cache */
569
569
typedef void (* invalidator_by_filename)(const char * filename);
570
570
 
 
571
/**
 
572
  clean/setup table fields and map.
 
573
 
 
574
  @param table        TABLE structure pointer (which should be setup)
 
575
  @param table_list   TABLE_LIST structure pointer (owner of TABLE)
 
576
  @param tablenr     table number
 
577
*/
 
578
static inline void setup_table_map(TABLE *table, TABLE_LIST *table_list, uint tablenr)
 
579
{
 
580
  table->used_fields= 0;
 
581
  table->const_table= 0;
 
582
  table->null_row= 0;
 
583
  table->status= STATUS_NO_RECORD;
 
584
  table->maybe_null= table_list->outer_join;
 
585
  TABLE_LIST *embedding= table_list->embedding;
 
586
  while (!table->maybe_null && embedding)
 
587
  {
 
588
    table->maybe_null= embedding->outer_join;
 
589
    embedding= embedding->embedding;
 
590
  }
 
591
  table->tablenr= tablenr;
 
592
  table->map= (table_map) 1 << tablenr;
 
593
  table->force_index= table_list->force_index;
 
594
  table->covering_keys= table->s->keys_for_keyread;
 
595
  table->merge_keys.clear_all();
 
596
}
 
597
 
571
598
#endif /* _my_base_h */