~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/data_engine/cursor.cc

  • Committer: Monty Taylor
  • Date: 2010-02-05 08:11:15 UTC
  • mfrom: (1283 build)
  • mto: (1273.13.43 fix_is)
  • mto: This revision was merged to the branch mainline in revision 1300.
  • Revision ID: mordred@inaugust.com-20100205081115-dr82nvrwv4lvw7sd
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
*****************************************************************************/
35
35
 
36
36
FunctionCursor::FunctionCursor(plugin::StorageEngine &engine_arg,
37
 
                                     TableShare &table_arg) :
 
37
                               TableShare &table_arg) :
38
38
  Cursor(engine_arg, table_arg)
39
39
{}
40
40
 
89
89
  copy= (unsigned char *)malloc(table->s->reclength);
90
90
  memcpy(copy, record, table->s->reclength);
91
91
  row_cache.push_back(copy);
92
 
  my_store_ptr(ref, ref_length, record_id);
 
92
  internal::my_store_ptr(ref, ref_length, record_id);
93
93
  record_id++;
94
94
}
95
95
 
112
112
int FunctionCursor::rnd_pos(unsigned char *buf, unsigned char *pos)
113
113
{
114
114
  ha_statistic_increment(&SSV::ha_read_rnd_count);
115
 
  size_t position_id= (size_t)my_get_ptr(pos, ref_length);
 
115
  size_t position_id= (size_t)internal::my_get_ptr(pos, ref_length);
116
116
 
117
117
  memcpy(buf, row_cache[position_id], table->s->reclength);
118
118