~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/records.cc

  • Committer: Monty Taylor
  • Date: 2008-08-18 23:04:17 UTC
  • mfrom: (327.1.12 drizzle)
  • Revision ID: monty@inaugust.com-20080818230417-442rhihpahnout34
MergedĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
 
54
54
void init_read_record_idx(READ_RECORD *info,
55
55
                          THD *thd __attribute__((unused)),
56
 
                          TABLE *table,
 
56
                          Table *table,
57
57
                          bool print_error, uint idx)
58
58
{
59
59
  empty_record(table);
139
139
    This is the most basic access method of a table using rnd_init,
140
140
    rnd_next and rnd_end. No indexes are used.
141
141
*/
142
 
void init_read_record(READ_RECORD *info,THD *thd, TABLE *table,
 
142
void init_read_record(READ_RECORD *info,THD *thd, Table *table,
143
143
                      SQL_SELECT *select,
144
144
                      int use_record_cache, bool print_error)
145
145
{
419
419
{
420
420
  if (my_b_read(info->io_cache, info->rec_buf, info->ref_length))
421
421
    return -1;
422
 
  TABLE *table= info->table;
 
422
  Table *table= info->table;
423
423
  (*table->sort.unpack)(table->sort.addon_field, info->rec_buf);
424
424
 
425
425
  return 0;
470
470
{
471
471
  if (info->cache_pos == info->cache_end)
472
472
    return -1;                      /* End of buffer */
473
 
  TABLE *table= info->table;
 
473
  Table *table= info->table;
474
474
  (*table->sort.unpack)(table->sort.addon_field, info->cache_pos);
475
475
  info->cache_pos+= info->ref_length;
476
476