~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field.h

  • Committer: Brian Aker
  • Date: 2009-05-05 00:22:46 UTC
  • mfrom: (1003.1.6 merge)
  • Revision ID: brian@gaz-20090505002246-m4ol528i6me7vikf
Merge Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
   */
113
113
  bool is_created_from_null_item;
114
114
 
115
 
  /*
116
 
    Indication that the field is physically stored in tables
117
 
    rather than just generated on SQL queries.
118
 
    As of now, false can only be set for generated-only virtual columns.
119
 
  */
120
 
  bool is_stored;
121
 
 
122
115
  Field(unsigned char *ptr_arg,uint32_t length_arg,unsigned char *null_ptr_arg,
123
116
        unsigned char null_bit_arg, utype unireg_check_arg,
124
117
        const char *field_name_arg);
526
519
  friend class Item_sum_max;
527
520
  friend class Item_func_group_concat;
528
521
 
 
522
  bool isRead();
 
523
  bool isWrite();
 
524
 
529
525
private:
530
526
  /*
531
527
    Primitive for implementing last_null_byte().
580
576
  uint32_t  decimals, flags, pack_length, key_length;
581
577
  Field::utype unireg_check;
582
578
  TYPELIB *interval;                    // Which interval to use
583
 
  TYPELIB *save_interval;               // Temporary copy for the above
584
 
                                        // Used only for UCS2 intervals
585
579
  List<String> interval_list;
586
580
  const CHARSET_INFO *charset;
587
581
  Field *field;                         // For alter table
589
583
  uint8_t       interval_id;    // For rea_create_table
590
584
  uint32_t      offset,pack_flag;
591
585
 
592
 
  /*
593
 
    Indication that the field is phycically stored in tables
594
 
    rather than just generated on SQL queries.
595
 
    As of now, FALSE can only be set for generated-only virtual columns.
596
 
  */
597
 
  bool is_stored;
598
 
 
599
586
  Create_field() :after(0) {}
600
587
  Create_field(Field *field, Field *orig_field);
601
588
  /* Used to make a clone of this object for ALTER/CREATE TABLE */