diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2018-08-31 13:47:48 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2018-08-31 15:10:02 +0300 |
commit | 206528f722799b04708c60a71b59d75bd32bdeb3 (patch) | |
tree | d59cf6cdc943a797bc9ef901865da3566c27d93a /sql/field.h | |
parent | b245023fe0bc6fa0bd6e2dfa9352b30b71d0d27d (diff) | |
parent | f693170c75a1f39f3f06aca683fe4a1998785008 (diff) | |
download | mariadb-git-206528f722799b04708c60a71b59d75bd32bdeb3.tar.gz |
Merge 10.1 into 10.2
Diffstat (limited to 'sql/field.h')
-rw-r--r-- | sql/field.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/sql/field.h b/sql/field.h index ae6adec07e8..22c276478b6 100644 --- a/sql/field.h +++ b/sql/field.h @@ -1448,17 +1448,6 @@ public: /* Hash value */ virtual void hash(ulong *nr, ulong *nr2); - /** - Get the upper limit of the MySQL integral and floating-point type. - - @return maximum allowed value for the field - */ - virtual ulonglong get_max_int_value() const - { - DBUG_ASSERT(false); - return 0ULL; - } - /** Checks whether a string field is part of write_set. @@ -2017,11 +2006,6 @@ public: *to= *from; return from + 1; } - - virtual ulonglong get_max_int_value() const - { - return unsigned_flag ? 0xFFULL : 0x7FULL; - } }; @@ -2063,10 +2047,6 @@ public: virtual const uchar *unpack(uchar* to, const uchar *from, const uchar *from_end, uint param_data) { return unpack_int16(to, from, from_end); } - virtual ulonglong get_max_int_value() const - { - return unsigned_flag ? 0xFFFFULL : 0x7FFFULL; - } }; class Field_medium :public Field_integer { @@ -2100,10 +2080,6 @@ public: { return Field::pack(to, from, max_length); } - virtual ulonglong get_max_int_value() const - { - return unsigned_flag ? 0xFFFFFFULL : 0x7FFFFFULL; - } }; @@ -2149,10 +2125,6 @@ public: { return unpack_int32(to, from, from_end); } - virtual ulonglong get_max_int_value() const - { - return unsigned_flag ? 0xFFFFFFFFULL : 0x7FFFFFFFULL; - } }; @@ -2202,10 +2174,6 @@ public: { return unpack_int64(to, from, from_end); } - virtual ulonglong get_max_int_value() const - { - return unsigned_flag ? 0xFFFFFFFFFFFFFFFFULL : 0x7FFFFFFFFFFFFFFFULL; - } }; @@ -2245,13 +2213,6 @@ public: uint32 pack_length() const { return sizeof(float); } uint row_pack_length() const { return pack_length(); } void sql_type(String &str) const; - virtual ulonglong get_max_int_value() const - { - /* - We use the maximum as per IEEE754-2008 standard, 2^24 - */ - return 0x1000000ULL; - } private: int do_save_field_metadata(uchar *first_byte); }; @@ -2304,13 +2265,6 @@ public: uint32 pack_length() const { return sizeof(double); } uint row_pack_length() const { return pack_length(); } void sql_type(String &str) const; - virtual ulonglong get_max_int_value() const - { - /* - We use the maximum as per IEEE754-2008 standard, 2^53 - */ - return 0x20000000000000ULL; - } private: int do_save_field_metadata(uchar *first_byte); }; |