~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field.h

  • Committer: Nathan Williams
  • Date: 2009-06-05 22:22:21 UTC
  • mto: This revision was merged to the branch mainline in revision 1063.
  • Revision ID: nathanlws@gmail.com-20090605222221-usmgpjhggrwjgz9w
No actual code changes. Changed Copy_field to CopyField, to reflect the coding standards.

Show diffs side-by-side

added added

removed removed

Lines of Context:
506
506
  friend bool reopen_table(Session *,Table *,bool);
507
507
  friend int cre_myisam(char * name, register Table *form, uint32_t options,
508
508
                        uint64_t auto_increment_value);
509
 
  friend class Copy_field;
 
509
  friend class CopyField;
510
510
  friend class Item_avg_field;
511
511
  friend class Item_std_field;
512
512
  friend class Item_sum_num;
630
630
  A class for quick copying data to fields
631
631
*/
632
632
 
633
 
class Copy_field :public Sql_alloc {
 
633
class CopyField :public Sql_alloc {
634
634
  /**
635
635
    Convenience definition of a copy function returned by
636
636
    get_copy_func.
637
637
  */
638
 
  typedef void Copy_func(Copy_field*);
 
638
  typedef void Copy_func(CopyField*);
639
639
  Copy_func *get_copy_func(Field *to, Field *from);
640
640
public:
641
641
  unsigned char *from_ptr,*to_ptr;
646
646
  Field *from_field,*to_field;
647
647
  String tmp;                                   // For items
648
648
 
649
 
  Copy_field() {}
650
 
  ~Copy_field() {}
 
649
  CopyField() {}
 
650
  ~CopyField() {}
651
651
  void set(Field *to,Field *from,bool save);    // Field to field
652
652
  void set(unsigned char *to,Field *from);              // Field to string
653
 
  void (*do_copy)(Copy_field *);
654
 
  void (*do_copy2)(Copy_field *);               // Used to handle null values
 
653
  void (*do_copy)(CopyField *);
 
654
  void (*do_copy2)(CopyField *);                // Used to handle null values
655
655
};
656
656
 
657
657