summaryrefslogtreecommitdiff
path: root/sql/item_row.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2015-12-01 13:13:23 +0400
committerAlexander Barkov <bar@mariadb.org>2015-12-01 13:13:23 +0400
commit607ef786fc50b44b8e0cb4af8fdb3c79e4a327bb (patch)
tree72c8d7e9bc632b593e485f853a211cc839446ea7 /sql/item_row.h
parente3fed3b9b4f488e9ad1afa57333ae80249e6cb17 (diff)
downloadmariadb-git-607ef786fc50b44b8e0cb4af8fdb3c79e4a327bb.tar.gz
MDEV-9215 Detect cmp_type() and result_type() from field_type()
(A dependency task for MDEV-4912 Add a plugin to field types)
Diffstat (limited to 'sql/item_row.h')
-rw-r--r--sql/item_row.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/item_row.h b/sql/item_row.h
index c9e94ed2efe..bbb9a7f1f96 100644
--- a/sql/item_row.h
+++ b/sql/item_row.h
@@ -82,6 +82,11 @@ public:
bool const_item() const { return const_item_cache; };
enum Item_result result_type() const { return ROW_RESULT; }
Item_result cmp_type() const { return ROW_RESULT; }
+ enum_field_types field_type() const
+ {
+ DBUG_ASSERT(0);
+ return MYSQL_TYPE_DOUBLE;
+ }
void update_used_tables()
{
used_tables_and_const_cache_init();