@@ -815,9 +815,9 @@ class Field: public Value_source
815
815
virtual int store (double nr)=0;
816
816
virtual int store (longlong nr, bool unsigned_val)=0;
817
817
virtual int store_decimal (const my_decimal *d)=0;
818
- virtual int store_time_dec (MYSQL_TIME *ltime, uint dec);
818
+ virtual int store_time_dec (const MYSQL_TIME *ltime, uint dec);
819
819
virtual int store_timestamp (my_time_t timestamp, ulong sec_part);
820
- int store_time (MYSQL_TIME *ltime)
820
+ int store_time (const MYSQL_TIME *ltime)
821
821
{ return store_time_dec (ltime, TIME_SECOND_PART_DIGITS); }
822
822
int store (const char *to, uint length, CHARSET_INFO *cs,
823
823
enum_check_fields check_level);
@@ -1673,7 +1673,7 @@ class Field_num :public Field {
1673
1673
field_metadata, length));
1674
1674
return length;
1675
1675
}
1676
- int store_time_dec (MYSQL_TIME *ltime, uint dec);
1676
+ int store_time_dec (const MYSQL_TIME *ltime, uint dec);
1677
1677
double pos_in_interval (Field *min, Field *max)
1678
1678
{
1679
1679
return pos_in_interval_val_real (min, max);
@@ -1813,7 +1813,7 @@ class Field_real :public Field_num {
1813
1813
field_length >= from->field_length ;
1814
1814
}
1815
1815
int store_decimal (const my_decimal *);
1816
- int store_time_dec (MYSQL_TIME *ltime, uint dec);
1816
+ int store_time_dec (const MYSQL_TIME *ltime, uint dec);
1817
1817
bool get_date (MYSQL_TIME *ltime, ulonglong fuzzydate);
1818
1818
my_decimal *val_decimal (my_decimal *);
1819
1819
bool val_bool () { return val_real () != 0e0 ; }
@@ -1903,7 +1903,7 @@ class Field_new_decimal :public Field_num {
1903
1903
int store (const char *to, uint length, CHARSET_INFO *charset);
1904
1904
int store (double nr);
1905
1905
int store (longlong nr, bool unsigned_val);
1906
- int store_time_dec (MYSQL_TIME *ltime, uint dec);
1906
+ int store_time_dec (const MYSQL_TIME *ltime, uint dec);
1907
1907
int store_decimal (const my_decimal *);
1908
1908
double val_real (void );
1909
1909
longlong val_int (void );
@@ -2382,7 +2382,7 @@ class Field_temporal_with_date: public Field_temporal {
2382
2382
int store (const char *to, uint length, CHARSET_INFO *charset);
2383
2383
int store (double nr);
2384
2384
int store (longlong nr, bool unsigned_val);
2385
- int store_time_dec (MYSQL_TIME *ltime, uint dec);
2385
+ int store_time_dec (const MYSQL_TIME *ltime, uint dec);
2386
2386
int store_decimal (const my_decimal *);
2387
2387
bool validate_value_in_record (THD *thd, const uchar *record) const ;
2388
2388
};
@@ -2404,7 +2404,7 @@ class Field_timestamp :public Field_temporal {
2404
2404
int store (const char *to,uint length,CHARSET_INFO *charset);
2405
2405
int store (double nr);
2406
2406
int store (longlong nr, bool unsigned_val);
2407
- int store_time_dec (MYSQL_TIME *ltime, uint dec);
2407
+ int store_time_dec (const MYSQL_TIME *ltime, uint dec);
2408
2408
int store_decimal (const my_decimal *);
2409
2409
int store_timestamp (my_time_t timestamp, ulong sec_part);
2410
2410
int save_in_field (Field *to);
@@ -2601,7 +2601,7 @@ class Field_year :public Field_tiny {
2601
2601
int store (const char *to,uint length,CHARSET_INFO *charset);
2602
2602
int store (double nr);
2603
2603
int store (longlong nr, bool unsigned_val);
2604
- int store_time_dec (MYSQL_TIME *ltime, uint dec);
2604
+ int store_time_dec (const MYSQL_TIME *ltime, uint dec);
2605
2605
double val_real (void );
2606
2606
longlong val_int (void );
2607
2607
String *val_str (String*,String *);
@@ -2711,7 +2711,7 @@ class Field_time :public Field_temporal {
2711
2711
return real_type () == from->real_type () &&
2712
2712
decimals () == from->decimals ();
2713
2713
}
2714
- int store_time_dec (MYSQL_TIME *ltime, uint dec);
2714
+ int store_time_dec (const MYSQL_TIME *ltime, uint dec);
2715
2715
int store (const char *to,uint length,CHARSET_INFO *charset);
2716
2716
int store (double nr);
2717
2717
int store (longlong nr, bool unsigned_val);
0 commit comments