~drizzle-trunk/libdrizzle/jenkins-Libdrizzle-83

« back to all changes in this revision

Viewing changes to libdrizzle/structs.h

  • Committer: Continuous Integration
  • Date: 2013-01-27 14:14:15 UTC
  • mfrom: (99.1.9 update-copyright-headers)
  • Revision ID: ci@drizzle.org-20130127141415-y4ywdlbqlvme08y5
Merge lp:~linuxjedi/libdrizzle/update-copyright-headers Build: jenkins-Libdrizzle-66

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *
3
3
 * Drizzle Client & Protocol Library
4
4
 *
 
5
 * Copyright (C) 2008-2013 Drizzle Developer Group
5
6
 * Copyright (C) 2008 Eric Day (eday@oddments.org)
6
7
 * All rights reserved.
7
8
 *
391
392
  }
392
393
};
393
394
 
394
 
/**
395
 
 * @ingroup drizzle_result
396
 
 */
397
 
struct drizzle_result_st
398
 
{
399
 
  drizzle_st *con;
400
 
  drizzle_result_st *next;
401
 
  drizzle_result_st *prev;
402
 
  drizzle_result_options_t options;
403
 
 
404
 
  char info[DRIZZLE_MAX_INFO_SIZE];
405
 
  uint16_t error_code;
406
 
  char sqlstate[DRIZZLE_MAX_SQLSTATE_SIZE + 1];
407
 
  uint64_t insert_id;
408
 
  uint16_t warning_count;
409
 
  uint64_t affected_rows;
410
 
 
411
 
  uint16_t column_count;
412
 
  uint16_t column_current;
413
 
  drizzle_column_st *column_list;
414
 
  drizzle_column_st *column;
415
 
  drizzle_column_st *column_buffer;
416
 
 
417
 
  uint64_t row_count;
418
 
  uint64_t row_current;
419
 
 
420
 
  uint16_t field_current;
421
 
  size_t field_total;
422
 
  size_t field_offset;
423
 
  size_t field_size;
424
 
  drizzle_field_t field;
425
 
  drizzle_field_t field_buffer;
426
 
 
427
 
  uint64_t row_list_size;
428
 
  drizzle_row_t row;
429
 
  drizzle_row_t *row_list;
430
 
  size_t *field_sizes;
431
 
  size_t **field_sizes_list;
432
 
  uint8_t **null_bitmap_list;
433
 
  uint8_t *null_bitmap;
434
 
  uint8_t null_bitmap_length;
435
 
  bool binary_rows;
436
 
 
437
 
  drizzle_result_st() :
438
 
    con(NULL),
439
 
    next(NULL),
440
 
    prev(NULL),
441
 
    options(DRIZZLE_RESULT_NONE),
442
 
    error_code(0),
443
 
    insert_id(0),
444
 
    warning_count(0),
445
 
    affected_rows(0),
446
 
    column_count(0),
447
 
    column_current(0),
448
 
    column_list(NULL),
449
 
    column(NULL),
450
 
    column_buffer(NULL),
451
 
    row_count(0),
452
 
    row_current(0),
453
 
    field_current(0),
454
 
    field_total(0),
455
 
    field_offset(0),
456
 
    field_size(0),
457
 
    field(NULL),
458
 
    field_buffer(NULL),
459
 
    row_list_size(0),
460
 
    row(NULL),
461
 
    row_list(NULL),
462
 
    field_sizes(NULL),
463
 
    field_sizes_list(NULL),
464
 
    null_bitmap_list(NULL),
465
 
    null_bitmap(NULL),
466
 
    null_bitmap_length(0),
467
 
    binary_rows(false)
468
 
  {
469
 
    info[0]= '\0';
470
 
    sqlstate[0]= '\0';
471
 
  }
472
 
 
473
 
  bool push_state(drizzle_state_fn* func_)
474
 
  {
475
 
    if (con)
476
 
    {
477
 
      return con->push_state(func_);
478
 
    }
479
 
 
480
 
    return false;
481
 
  }
482
 
 
483
 
  bool has_state() const
484
 
  {
485
 
    if (con)
486
 
    {
487
 
      return con->has_state();
488
 
    }
489
 
 
490
 
    return false;
491
 
  }
492
 
};
493
 
 
494
395
struct drizzle_binlog_event_st
495
396
{
496
397
  uint32_t timestamp;