diff options
author | Alexander Barkov <bar@mariadb.com> | 2022-01-28 22:32:56 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2022-01-28 22:32:56 +0400 |
commit | 059a8fd87eb900a5a12185b1963e5623df874c21 (patch) | |
tree | c941e055a8d088a2da04832718dfd9f822b8f833 /sql/sql_type.h | |
parent | fb8fea3490b79b9b92e188f6bb4ca84f8636efc3 (diff) | |
download | mariadb-git-059a8fd87eb900a5a12185b1963e5623df874c21.tar.gz |
MDEV-27668 Assertion `item->type_handler()->is_traditional_scalar_type() || item->type_handler() == type_handler()' failed in Field_inet6::can_optimize_keypart_ref
Diffstat (limited to 'sql/sql_type.h')
-rw-r--r-- | sql/sql_type.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_type.h b/sql/sql_type.h index 8ea5b9ddde1..a2e21d81894 100644 --- a/sql/sql_type.h +++ b/sql/sql_type.h @@ -3773,6 +3773,11 @@ public: { return NULL; } + const Type_handler *type_handler_base_or_self() const + { + const Type_handler *res= type_handler_base(); + return res ? res : this; + } virtual const Type_handler *type_handler_for_comparison() const= 0; virtual const Type_handler *type_handler_for_native_format() const { |