Skip to content

Commit e2a59eb

Browse files
committed
Make dbug_print_item() print conditions in siccint form
1 parent caf4291 commit e2a59eb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

sql/item.cc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9740,7 +9740,15 @@ const char *dbug_print_item(Item *item)
97409740
str.length(0);
97419741
if (!item)
97429742
return "(Item*)NULL";
9743-
item->print(&str ,QT_ORDINARY);
9743+
9744+
THD *thd= current_thd;
9745+
ulonglong save_option_bits= thd->variables.option_bits;
9746+
thd->variables.option_bits &= ~OPTION_QUOTE_SHOW_CREATE;
9747+
9748+
item->print(&str ,QT_EXPLAIN);
9749+
9750+
thd->variables.option_bits= save_option_bits;
9751+
97449752
if (str.c_ptr() == buf)
97459753
return buf;
97469754
else

0 commit comments

Comments
 (0)