~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.cc

  • Committer: Monty Taylor
  • Date: 2008-11-18 22:12:56 UTC
  • mto: (589.1.3 devel)
  • mto: This revision was merged to the branch mainline in revision 589.
  • Revision ID: monty@inaugust.com-20081118221256-ap2kmj073pdw7uap
The mega-patch from hell. Renamed sql_class to session (since that's what it is) and removed it and field and table from common_includes. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include <drizzled/sql_parse.h>
28
28
#include <drizzled/item/sum.h>
29
29
#include <drizzled/virtual_column_info.h>
 
30
#include <drizzled/table_list.h>
 
31
#include <drizzled/session.h>
 
32
#include <drizzled/sql_base.h>
30
33
 
31
34
#include <string>
32
35
 
42
45
static int open_binary_frm(Session *session, TABLE_SHARE *share,
43
46
                           unsigned char *head, File file);
44
47
static void fix_type_pointers(const char ***array, TYPELIB *point_to_type,
45
 
                              uint32_t types, char **names);
46
 
static uint32_t find_field(Field **fields, unsigned char *record, uint32_t start, uint32_t length);
 
48
                              uint32_t types, char **names);
 
49
static uint32_t find_field(Field **fields, unsigned char *record,
 
50
                           uint32_t start, uint32_t length);
47
51
 
48
52
/*************************************************************************/
49
53
 
2870
2874
}
2871
2875
 
2872
2876
 
 
2877
bool TableList::placeholder()
 
2878
{
 
2879
  return derived || schema_table || (create && !table->getDBStat()) || !table;
 
2880
}
 
2881
 
 
2882
 
2873
2883
/*
2874
2884
  Set insert_values buffer
2875
2885
 
4963
4973
}
4964
4974
 
4965
4975
 
 
4976
void setup_table_map(Table *table, TableList *table_list, uint32_t tablenr)
 
4977
{
 
4978
  table->used_fields= 0;
 
4979
  table->const_table= 0;
 
4980
  table->null_row= 0;
 
4981
  table->status= STATUS_NO_RECORD;
 
4982
  table->maybe_null= table_list->outer_join;
 
4983
  TableList *embedding= table_list->embedding;
 
4984
  while (!table->maybe_null && embedding)
 
4985
  {
 
4986
    table->maybe_null= embedding->outer_join;
 
4987
    embedding= embedding->embedding;
 
4988
  }
 
4989
  table->tablenr= tablenr;
 
4990
  table->map= (table_map) 1 << tablenr;
 
4991
  table->force_index= table_list->force_index;
 
4992
  table->covering_keys= table->s->keys_for_keyread;
 
4993
  table->merge_keys.clear_all();
 
4994
}
 
4995
 
 
4996
 
4966
4997
/*****************************************************************************
4967
4998
** Instansiate templates
4968
4999
*****************************************************************************/