~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_class.h

  • Committer: Brian Aker
  • Date: 2008-08-18 22:20:43 UTC
  • mto: This revision was merged to the branch mainline in revision 352.
  • Revision ID: brian@tangent.org-20080818222043-et6zf93ogrgx1cz9
Refactoring table.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
1178
1178
       List contain only transactional tables, that not invalidated in query
1179
1179
       cache (instead of full list of changed in transaction tables).
1180
1180
    */
1181
 
    CHANGED_TABLE_LIST* changed_tables;
 
1181
    CHANGED_TableList* changed_tables;
1182
1182
    MEM_ROOT mem_root; // Transaction-life memory allocation pool
1183
1183
    void cleanup()
1184
1184
    {
1685
1685
 
1686
1686
  void add_changed_table(Table *table);
1687
1687
  void add_changed_table(const char *key, long key_length);
1688
 
  CHANGED_TABLE_LIST * changed_table_dup(const char *key, long key_length);
 
1688
  CHANGED_TableList * changed_table_dup(const char *key, long key_length);
1689
1689
  int send_explain_fields(select_result *result);
1690
1690
  /**
1691
1691
    Clear the current error, if any.
2121
2121
 
2122
2122
class select_insert :public select_result_interceptor {
2123
2123
 public:
2124
 
  TABLE_LIST *table_list;
 
2124
  TableList *table_list;
2125
2125
  Table *table;
2126
2126
  List<Item> *fields;
2127
2127
  uint64_t autoinc_value_of_last_inserted_row; // autogenerated or not
2128
2128
  COPY_INFO info;
2129
2129
  bool insert_into_view;
2130
 
  select_insert(TABLE_LIST *table_list_par,
 
2130
  select_insert(TableList *table_list_par,
2131
2131
                Table *table_par, List<Item> *fields_par,
2132
2132
                List<Item> *update_fields, List<Item> *update_values,
2133
2133
                enum_duplicates duplic, bool ignore);
2147
2147
 
2148
2148
class select_create: public select_insert {
2149
2149
  order_st *group;
2150
 
  TABLE_LIST *create_table;
 
2150
  TableList *create_table;
2151
2151
  HA_CREATE_INFO *create_info;
2152
 
  TABLE_LIST *select_tables;
 
2152
  TableList *select_tables;
2153
2153
  Alter_info *alter_info;
2154
2154
  Field **field;
2155
2155
  /* lock data for tmp table */
2157
2157
  /* m_lock or thd->extra_lock */
2158
2158
  DRIZZLE_LOCK **m_plock;
2159
2159
public:
2160
 
  select_create (TABLE_LIST *table_arg,
 
2160
  select_create (TableList *table_arg,
2161
2161
                 HA_CREATE_INFO *create_info_par,
2162
2162
                 Alter_info *alter_info_arg,
2163
2163
                 List<Item> &select_fields,enum_duplicates duplic, bool ignore,
2164
 
                 TABLE_LIST *select_tables_arg)
 
2164
                 TableList *select_tables_arg)
2165
2165
    :select_insert (NULL, NULL, &select_fields, 0, 0, duplic, ignore),
2166
2166
    create_table(table_arg),
2167
2167
    create_info(create_info_par),
2455
2455
 
2456
2456
class multi_delete :public select_result_interceptor
2457
2457
{
2458
 
  TABLE_LIST *delete_tables, *table_being_deleted;
 
2458
  TableList *delete_tables, *table_being_deleted;
2459
2459
  Unique **tempfiles;
2460
2460
  ha_rows deleted, found;
2461
2461
  uint num_of_tables;
2473
2473
  bool error_handled;
2474
2474
 
2475
2475
public:
2476
 
  multi_delete(TABLE_LIST *dt, uint num_of_tables);
 
2476
  multi_delete(TableList *dt, uint num_of_tables);
2477
2477
  ~multi_delete();
2478
2478
  int prepare(List<Item> &list, SELECT_LEX_UNIT *u);
2479
2479
  bool send_data(List<Item> &items);
2487
2487
 
2488
2488
class multi_update :public select_result_interceptor
2489
2489
{
2490
 
  TABLE_LIST *all_tables; /* query/update command tables */
2491
 
  TABLE_LIST *leaves;     /* list of leves of join table tree */
2492
 
  TABLE_LIST *update_tables, *table_being_updated;
 
2490
  TableList *all_tables; /* query/update command tables */
 
2491
  TableList *leaves;     /* list of leves of join table tree */
 
2492
  TableList *update_tables, *table_being_updated;
2493
2493
  Table **tmp_tables, *main_table, *table_to_update;
2494
2494
  TMP_TABLE_PARAM *tmp_table_param;
2495
2495
  ha_rows updated, found;
2514
2514
  bool error_handled;
2515
2515
 
2516
2516
public:
2517
 
  multi_update(TABLE_LIST *ut, TABLE_LIST *leaves_list,
 
2517
  multi_update(TableList *ut, TableList *leaves_list,
2518
2518
               List<Item> *fields, List<Item> *values,
2519
2519
               enum_duplicates handle_duplicates, bool ignore);
2520
2520
  ~multi_update();