summaryrefslogtreecommitdiff
path: root/sql/field.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-11-10 09:50:30 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2022-11-10 09:50:30 +0200
commit91a7e9eb1ef9bfba6a1da5bca4a9b8c58a94c245 (patch)
tree5ba5f3931c1dd69bd609c37502951be9129c0a5e /sql/field.h
parentc18a57ab2a796637a563b15daa3b5981123cfe8f (diff)
parent038cd5195612084542704f181695358e3b8959a8 (diff)
downloadmariadb-git-91a7e9eb1ef9bfba6a1da5bca4a9b8c58a94c245.tar.gz
Merge 10.8 into 10.9
Diffstat (limited to 'sql/field.h')
-rw-r--r--sql/field.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/sql/field.h b/sql/field.h
index 4c503ab2f97..eac5ed58a0e 100644
--- a/sql/field.h
+++ b/sql/field.h
@@ -1775,12 +1775,6 @@ public:
Used by the ALTER TABLE
*/
virtual bool is_equal(const Column_definition &new_field) const= 0;
- // Used as double dispatch pattern: calls virtual method of handler
- virtual bool
- can_be_converted_by_engine(const Column_definition &new_type) const
- {
- return false;
- }
/* convert decimal to longlong with overflow check */
longlong convert_decimal2longlong(const my_decimal *val, bool unsigned_flag,
int *err);
@@ -4070,11 +4064,6 @@ public:
void sql_type(String &str) const override;
void sql_rpl_type(String*) const override;
bool is_equal(const Column_definition &new_field) const override;
- bool can_be_converted_by_engine(const Column_definition &new_type) const
- override
- {
- return table->file->can_convert_string(this, new_type);
- }
uchar *pack(uchar *to, const uchar *from, uint max_length) override;
const uchar *unpack(uchar* to, const uchar *from, const uchar *from_end,
uint param_data) override;
@@ -4229,11 +4218,6 @@ public:
uchar *new_ptr, uint32 length,
uchar *new_null_ptr, uint new_null_bit) override;
bool is_equal(const Column_definition &new_field) const override;
- bool can_be_converted_by_engine(const Column_definition &new_type) const
- override
- {
- return table->file->can_convert_varstring(this, new_type);
- }
void hash(ulong *nr, ulong *nr2) override;
uint length_size() const override { return length_bytes; }
void print_key_value(String *out, uint32 length) override;
@@ -4672,11 +4656,6 @@ public:
uint32 char_length() const override;
uint32 character_octet_length() const override;
bool is_equal(const Column_definition &new_field) const override;
- bool can_be_converted_by_engine(const Column_definition &new_type) const
- override
- {
- return table->file->can_convert_blob(this, new_type);
- }
void print_key_value(String *out, uint32 length) override;
Binlog_type_info binlog_type_info() const override;