Commit 2eb00d1e authored by Sergei Golubchik's avatar Sergei Golubchik

fix Item_window_func::print() not to crash before fix_fields()

because dbug_print_item() can be invoked any time in gdb,
also before fix_fields.

this fixes a crash of main.win in debug builds
parent c4930a82
......@@ -440,5 +440,10 @@ void Item_window_func::print(String *str, enum_query_type query_type)
{
window_func()->print(str, query_type);
str->append(" over ");
#ifndef DBUG_OFF
if (!window_spec) // one can call dbug_print_item() anytime in gdb
str->append(window_name);
else
#endif
window_spec->print(str, query_type);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment