summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--storage/spider/spd_db_conn.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/storage/spider/spd_db_conn.cc b/storage/spider/spd_db_conn.cc
index 5a8c7492654..6e377b482a4 100644
--- a/storage/spider/spd_db_conn.cc
+++ b/storage/spider/spd_db_conn.cc
@@ -8853,6 +8853,12 @@ int spider_db_print_item_type(
DBUG_ENTER("spider_db_print_item_type");
DBUG_PRINT("info",("spider COND type=%d", item->type()));
+ if (item->type() == Item::REF_ITEM &&
+ ((Item_ref*)item)->ref_type() == Item_ref::DIRECT_REF)
+ {
+ item= item->real_item();
+ DBUG_PRINT("info",("spider new COND type=%d", item->type()));
+ }
switch (item->type())
{
case Item::FUNC_ITEM: