~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field.h

  • Committer: Eric Herman
  • Date: 2008-12-06 19:42:46 UTC
  • mto: (656.1.6 devel)
  • mto: This revision was merged to the branch mainline in revision 665.
  • Revision ID: eric@mysql.com-20081206194246-5cdexuu81i366eek
removed trailing whitespace with simple script:

for file in $(find . -name "*.c") $(find . -name "*.cc") $(find . -name "*.h"); do ruby -pe 'gsub(/\s+$/, $/)' < $file > $file.out; mv $file.out $file; done;

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
  unsigned char         *ptr;                   // Position to field in record
70
70
  unsigned char         *null_ptr;              // Byte where null_bit is
71
71
  /*
72
 
    Note that you can use table->in_use as replacement for current_session member 
 
72
    Note that you can use table->in_use as replacement for current_session member
73
73
    only inside of val_*() and store() members (e.g. you can't use it in cons)
74
74
  */
75
75
  Table *table;         // Pointer for table
462
462
  { }
463
463
  bool set_warning(DRIZZLE_ERROR::enum_warning_level, unsigned int code,
464
464
                   int cuted_increment);
465
 
  void set_datetime_warning(DRIZZLE_ERROR::enum_warning_level, uint32_t code, 
 
465
  void set_datetime_warning(DRIZZLE_ERROR::enum_warning_level, uint32_t code,
466
466
                            const char *str, uint32_t str_len,
467
467
                            enum enum_drizzle_timestamp_type ts_type, int cuted_increment);
468
 
  void set_datetime_warning(DRIZZLE_ERROR::enum_warning_level, uint32_t code, 
 
468
  void set_datetime_warning(DRIZZLE_ERROR::enum_warning_level, uint32_t code,
469
469
                            int64_t nr, enum enum_drizzle_timestamp_type ts_type,
470
470
                            int cuted_increment);
471
 
  void set_datetime_warning(DRIZZLE_ERROR::enum_warning_level, const uint32_t code, 
 
471
  void set_datetime_warning(DRIZZLE_ERROR::enum_warning_level, const uint32_t code,
472
472
                            double nr, enum enum_drizzle_timestamp_type ts_type);
473
473
  inline bool check_overflow(int op_result)
474
474
  {
557
557
  enum  enum_field_types sql_type;
558
558
  /*
559
559
    At various stages in execution this can be length of field in bytes or
560
 
    max number of characters. 
 
560
    max number of characters.
561
561
  */
562
562
  uint32_t length;
563
563
  /*
580
580
  /* Virtual column expression statement */
581
581
  virtual_column_info *vcol_info;
582
582
  /*
583
 
    Indication that the field is phycically stored in tables 
 
583
    Indication that the field is phycically stored in tables
584
584
    rather than just generated on SQL queries.
585
585
    As of now, FALSE can only be set for generated-only virtual columns.
586
586
  */
652
652
 
653
653
  Copy_field() {}
654
654
  ~Copy_field() {}
655
 
  void set(Field *to,Field *from,bool save);    // Field to field 
 
655
  void set(Field *to,Field *from,bool save);    // Field to field
656
656
  void set(unsigned char *to,Field *from);              // Field to string
657
657
  void (*do_copy)(Copy_field *);
658
658
  void (*do_copy2)(Copy_field *);               // Used to handle null values