~linuxjedi/libdrizzle/5.1-docs2

« back to all changes in this revision

Viewing changes to libdrizzle/structs.h

  • Committer: Continuous Integration
  • Date: 2013-01-17 11:33:48 UTC
  • mfrom: (93.1.3 5.1-better-realloc)
  • Revision ID: ci@drizzle.org-20130117113348-e3yaws0qbijip8cv
Merge lp:~linuxjedi/libdrizzle/5.1-better-realloc Build: jenkins-Libdrizzle-49

Show diffs side-by-side

added added

removed removed

Lines of Context:
456
456
{
457
457
  drizzle_column_type_t type;
458
458
  void *data;
 
459
  char *data_buffer;
459
460
  uint32_t length;
460
461
  bool is_bound;
461
 
  char *converted_data;
462
462
  struct options_t
463
463
  {
464
464
    bool is_null;
465
465
    bool is_unsigned;
466
466
    bool is_long_data;
467
 
    bool is_allocated;
468
467
 
469
468
    options_t() :
470
469
      is_null(false),
471
470
      is_unsigned(false),
472
 
      is_long_data(false),
473
 
      is_allocated(false)
 
471
      is_long_data(false)
474
472
    { }
475
473
  } options;
476
474
  drizzle_bind_st() :
477
475
    type(DRIZZLE_COLUMN_TYPE_NONE),
478
476
    data(NULL),
479
477
    length(0),
480
 
    is_bound(false),
481
 
    converted_data(NULL)
482
 
  { }
 
478
    is_bound(false)
 
479
  { 
 
480
    data_buffer= new (std::nothrow) char[128];
 
481
  }
483
482
};
484
483
 
485
484
#ifdef __cplusplus