~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field.h

  • Committer: Monty Taylor
  • Date: 2009-05-08 19:07:39 UTC
  • mto: This revision was merged to the branch mainline in revision 1009.
  • Revision ID: mordred@inaugust.com-20090508190739-rwas5y9xjg1a92p6
Reverted a crap-ton of padraig's work.

Show diffs side-by-side

added added

removed removed

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