~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_union.cc

  • Committer: Brian Aker
  • Date: 2008-10-20 03:40:03 UTC
  • mto: (492.3.21 drizzle-clean-code)
  • mto: This revision was merged to the branch mainline in revision 530.
  • Revision ID: brian@tangent.org-20081020034003-t2dcnl0ayr2ymm8k
THD -> Session rename

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include <drizzled/sql_select.h>
22
22
#include <drizzled/drizzled_error_messages.h>
23
23
 
24
 
bool mysql_union(THD *thd,
 
24
bool mysql_union(Session *thd,
25
25
                 LEX *lex __attribute__((unused)),
26
26
                 select_result *result,
27
27
                 SELECT_LEX_UNIT *unit, ulong setup_tables_done_option)
113
113
*/
114
114
 
115
115
bool
116
 
select_union::create_result_table(THD *thd_arg, List<Item> *column_types,
 
116
select_union::create_result_table(Session *thd_arg, List<Item> *column_types,
117
117
                                  bool is_union_distinct, uint64_t options,
118
118
                                  const char *table_alias,
119
119
                                  bool bit_fields_as_long)
161
161
*/
162
162
 
163
163
void
164
 
st_select_lex_unit::init_prepare_fake_select_lex(THD *thd_arg) 
 
164
st_select_lex_unit::init_prepare_fake_select_lex(Session *thd_arg) 
165
165
{
166
166
  thd_arg->lex->current_select= fake_select_lex;
167
167
  fake_select_lex->table_list.link_in_list((unsigned char *)&result_table_list,
186
186
}
187
187
 
188
188
 
189
 
bool st_select_lex_unit::prepare(THD *thd_arg, select_result *sel_result,
 
189
bool st_select_lex_unit::prepare(Session *thd_arg, select_result *sel_result,
190
190
                                 uint32_t additional_options)
191
191
{
192
192
  SELECT_LEX *lex_select_save= thd_arg->lex->current_select;