~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/set_user_var.cc

  • Committer: Monty Taylor
  • Date: 2009-05-08 19:27:21 UTC
  • mto: This revision was merged to the branch mainline in revision 1009.
  • Revision ID: mordred@inaugust.com-20090508192721-glbsg850k7wqp1rd
Further reversion of P.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <drizzled/field/num.h>
25
25
#include <drizzled/session.h>
26
26
 
27
 
#include <bitset>
28
 
 
29
 
using namespace std;
30
 
 
31
27
/*
32
28
  When a user variable is updated (in a SET command or a query like
33
29
  SELECT @a:= ).
92
88
  {
93
89
    Table *table= (Table *) arg;
94
90
    if (result_field->table == table || !table)
95
 
      result_field->table->read_set->set(result_field->field_index);
 
91
      bitmap_set_bit(result_field->table->read_set, result_field->field_index);
96
92
  }
97
93
  return 0;
98
94
}
104
100
 
105
101
bool Item_func_set_user_var::register_field_in_bitmap(unsigned char *arg)
106
102
{
107
 
  bitset<MAX_FIELDS> *bitmap = (bitset<MAX_FIELDS> *) arg;
 
103
  MY_BITMAP *bitmap = (MY_BITMAP *) arg;
108
104
  assert(bitmap);
109
105
  if (result_field)
110
106
  {
111
 
    bitmap->set(result_field->field_index);
 
107
    bitmap_set_bit(bitmap, result_field->field_index);
112
108
  }
113
109
  return 0;
114
110
}