~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/func.cc

  • Committer: Brian Aker
  • Date: 2011-01-18 07:21:16 UTC
  • mfrom: (2079.3.3 session-fix)
  • Revision ID: brian@tangent.org-20110118072116-nuflltzguzhq9rgg
Merge in update so that test-run.pl runs all of test/suite and fix for
create table like and FK.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
 
63
63
Item_func::Item_func(List<Item> &list) :
64
64
  _session(*current_session),
65
 
  allowed_arg_cols(1)
 
65
  allowed_arg_cols(1),
 
66
  const_item_cache(false)
66
67
{
67
68
  collation.set(DERIVATION_SYSCONST);
68
69
  set_arguments(list);
134
135
  unsigned char buff[STACK_BUFF_ALLOC];      // Max argument in function
135
136
  session->session_marker= 0;
136
137
  used_tables_cache= not_null_tables_cache= 0;
137
 
  const_item_cache=1;
 
138
  const_item_cache= true;
138
139
 
139
140
  if (check_stack_overrun(session, STACK_MIN_SIZE, buff))
140
141
    return true;        // Fatal error if flag is set!
189
190
  Item **arg,**arg_end;
190
191
 
191
192
  used_tables_cache= not_null_tables_cache= 0;
192
 
  const_item_cache=1;
 
193
  const_item_cache= false;
193
194
 
194
195
  if (arg_count)
195
196
  {
354
355
void Item_func::update_used_tables()
355
356
{
356
357
  used_tables_cache=0;
357
 
  const_item_cache=1;
 
358
  const_item_cache= true;
358
359
  for (uint32_t i=0 ; i < arg_count ; i++)
359
360
  {
360
361
    args[i]->update_used_tables();