394
386
session->lex().sql_command= SQLCOM_SELECT;
395
387
session->lex().statement= new statement::Show(session);
389
if (prepare_new_schema_table(session, session->lex(), is_global == OPT_GLOBAL ? "GLOBAL_STATUS" : "SESSION_STATUS"))
411
392
Item_field *my_field= new Item_field(&session->lex().current_select->context, NULL, NULL, "VARIABLE_NAME");
412
393
my_field->is_autogenerated_name= false;
414
395
session->add_item_to_list(my_field);
415
396
my_field= new Item_field(&session->lex().current_select->context, NULL, NULL, "VARIABLE_VALUE");
416
397
my_field->is_autogenerated_name= false;
418
399
session->add_item_to_list(my_field);