~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle-2.0/column.cc

  • Committer: Mark Atwood
  • Date: 2011-11-22 17:04:41 UTC
  • mfrom: (2462.1.3 drizzle-include)
  • Revision ID: me@mark.atwood.name-20111122170441-5dehm0e0ax20z19b
mergeĀ lp:~brianaker/drizzle/fedora-16-fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
371
371
    column->result= result;
372
372
    /* SET BELOW: column->next */
373
373
    column->prev= NULL;
374
 
    column->options.is_allocated= true;
 
374
    column->options= DRIZZLE_COLUMN_ALLOCATED;
375
375
    column->catalog[0]= '\0';
376
376
    column->schema[0]= '\0';
377
377
    column->table[0]= '\0';
392
392
    column->result = result;
393
393
    /* SET BELOW: column->next */
394
394
    column->prev = NULL;
395
 
    column->options.is_allocated= false;
 
395
    column->options= drizzle_column_options_t();
396
396
    column->catalog[0] = '\0';
397
397
    column->schema[0] = '\0';
398
398
    column->table[0] = '\0';
441
441
    column->next->prev= column->prev;
442
442
  }
443
443
 
444
 
  if (column->options.is_allocated)
 
444
  if (column->options & DRIZZLE_COLUMN_ALLOCATED)
445
445
  {
446
446
    delete column;
447
447
  }
1170
1170
  ptr+= 4;
1171
1171
 
1172
1172
  if (con->options & DRIZZLE_CON_MYSQL)
1173
 
  {
1174
1173
    ptr[0]= column->type;
1175
 
  }
1176
1174
  else
1177
 
  {
1178
1175
    ptr[0]= _column_type_drizzle_map_from[column->type];
1179
 
  }
1180
1176
  ptr++;
1181
1177
 
1182
1178
  drizzle_set_byte2(ptr, column->flags);