~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field.h

  • Committer: Brian Aker
  • Date: 2009-07-11 05:59:19 UTC
  • mfrom: (1089.1.9 merge)
  • Revision ID: brian@gaz-20090711055919-m4px3crrdgta5lie
Collection of patches from new-cleanup (includes asserts for field in debug)

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
#define DATETIME_DEC                     6
39
39
#define DOUBLE_TO_STRING_CONVERSION_BUFFER_SIZE FLOATING_POINT_BUFFER
40
40
 
 
41
#ifdef DEBUG
 
42
#define ASSERT_COLUMN_MARKED_FOR_READ assert(!table || (table->read_set == NULL || isReadSet()))
 
43
#define ASSERT_COLUMN_MARKED_FOR_WRITE assert(!table || (table->write_set == NULL || isWriteSet()))
 
44
#else
 
45
#define ASSERT_COLUMN_MARKED_FOR_READ
 
46
#define ASSERT_COLUMN_MARKED_FOR_WRITE
 
47
#endif
 
48
 
41
49
const uint32_t max_field_size= (uint32_t) 4294967295U;
42
50
 
43
51
class SendField;
741
749
 
742
750
  bool isReadSet();
743
751
  bool isWriteSet();
 
752
  void setReadSet(bool arg= true);
 
753
  void setWriteSet(bool arg= true);
744
754
 
745
755
private:
746
756