|
|
|
@ -792,7 +792,7 @@ public: |
|
|
|
return (ptr == field->ptr && null_ptr == field->null_ptr && |
|
|
|
null_bit == field->null_bit && field->type() == type()); |
|
|
|
} |
|
|
|
virtual bool eq_def(const Field *field); |
|
|
|
virtual bool eq_def(const Field *field) const; |
|
|
|
|
|
|
|
/* |
|
|
|
pack_length() returns size (in bytes) used to store field data in memory |
|
|
|
@ -1518,7 +1518,7 @@ public: |
|
|
|
void make_field(Send_field *); |
|
|
|
uint decimals() const { return (uint) dec; } |
|
|
|
uint size_of() const { return sizeof(*this); } |
|
|
|
bool eq_def(const Field *field); |
|
|
|
bool eq_def(const Field *field) const; |
|
|
|
int save_in_field(Field *to) |
|
|
|
{ |
|
|
|
return to->store(val_int(), MY_TEST(flags & UNSIGNED_FLAG)); |
|
|
|
@ -2151,7 +2151,7 @@ public: |
|
|
|
enum Item_result cmp_type () const { return TIME_RESULT; } |
|
|
|
bool val_bool() { return val_real() != 0e0; } |
|
|
|
uint is_equal(Create_field *new_field); |
|
|
|
bool eq_def(const Field *field) |
|
|
|
bool eq_def(const Field *field) const |
|
|
|
{ |
|
|
|
return (Field::eq_def(field) && decimals() == field->decimals()); |
|
|
|
} |
|
|
|
@ -3302,7 +3302,7 @@ public: |
|
|
|
uint row_pack_length() const { return pack_length(); } |
|
|
|
virtual bool zero_pack() const { return 0; } |
|
|
|
bool optimize_range(uint idx, uint part) { return 0; } |
|
|
|
bool eq_def(const Field *field); |
|
|
|
bool eq_def(const Field *field) const; |
|
|
|
bool has_charset(void) const { return TRUE; } |
|
|
|
/* enum and set are sorted as integers */ |
|
|
|
CHARSET_INFO *sort_charset(void) const { return &my_charset_bin; } |
|
|
|
@ -3697,7 +3697,7 @@ class Copy_field :public Sql_alloc { |
|
|
|
get_copy_func. |
|
|
|
*/ |
|
|
|
typedef void Copy_func(Copy_field*); |
|
|
|
Copy_func *get_copy_func(Field *to, Field *from); |
|
|
|
Copy_func *get_copy_func(const Field *to, const Field *from); |
|
|
|
public: |
|
|
|
uchar *from_ptr,*to_ptr; |
|
|
|
uchar *from_null_ptr,*to_null_ptr; |
|
|
|
|