summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-03-21 13:43:17 +0400
committerAlexander Barkov <bar@mariadb.com>2019-03-22 07:28:59 +0400
commitf4484dfdbf2d78b0f357916ebd8ade024dd73c09 (patch)
tree680aca6e1cf1290efd65fa5fa53e936169394422 /sql/item.h
parent482710b20c28e2cdc598dc37468cc5dc06c53ac1 (diff)
downloadmariadb-git-f4484dfdbf2d78b0f357916ebd8ade024dd73c09.tar.gz
MDEV-19008 Slow EXPLAIN SELECT ... WHERE col IN (const1,const2,(subquery))
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/item.h b/sql/item.h
index 4eab7090276..883cc791f38 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -1409,6 +1409,16 @@ public:
LOWEST_PRECEDENCE);
}
virtual void print(String *str, enum_query_type query_type);
+
+ class Print: public String
+ {
+ public:
+ Print(Item *item, enum_query_type type)
+ {
+ item->print(this, type);
+ }
+ };
+
void print_item_w_name(String *str, enum_query_type query_type);
void print_value(String *str);