Commit eeb7f512 authored by Sergei Golubchik's avatar Sergei Golubchik

lp:731089 Crash in Field_time_hires::pack_length on CREATE TABLE TIME(3)

add missing size_of() methods to new Field* classes
parent 743b6f86
......@@ -1255,6 +1255,7 @@ public:
const uchar *unpack(uchar* to, const uchar *from, uint param_data,
bool low_byte_first)
{ return Field::unpack(to, from, param_data, low_byte_first); }
uint size_of() const { return sizeof(*this); }
};
......@@ -1419,6 +1420,7 @@ public:
uint32 pack_length() const;
void sql_type(String &str) const;
void make_field(Send_field *);
uint size_of() const { return sizeof(*this); }
};
class Field_datetime :public Field_temporal {
......@@ -1494,6 +1496,7 @@ public:
const uchar *unpack(uchar* to, const uchar *from, uint param_data,
bool low_byte_first)
{ return Field::unpack(to, from, param_data, low_byte_first); }
uint size_of() const { return sizeof(*this); }
};
static inline Field_timestamp *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment