My Project
Variables
opt_trace2server.cc File Reference
#include "opt_trace.h"
#include "sql_show.h"
#include "sql_parse.h"
#include "sp_head.h"

Variables

ST_FIELD_INFO optimizer_trace_info []

Detailed Description

Implementation of the Optimizer trace API (WL#5257) Helpers connecting the optimizer trace to THD or Information Schema. They are dedicated "to the server" (hence the file's name). In order to create a unit test of the optimizer trace without defining Item_field (and all its parent classes), st_select_lex..., these helpers are defined in opt_trace2server.cc.


Variable Documentation

Initial value:
{
  
  {"QUERY", 65535, MYSQL_TYPE_STRING, 0, false, NULL, SKIP_OPEN_TABLE},
  {"TRACE", 65535, MYSQL_TYPE_STRING, 0, false, NULL, SKIP_OPEN_TABLE},
  {"MISSING_BYTES_BEYOND_MAX_MEM_SIZE", 20, MYSQL_TYPE_LONG,
   0, false, NULL, SKIP_OPEN_TABLE},
  {"INSUFFICIENT_PRIVILEGES", 1, MYSQL_TYPE_TINY,
   0, false, NULL, SKIP_OPEN_TABLE},
  {NULL, 0,  MYSQL_TYPE_STRING, 0, true, NULL, 0}
}

For creating fields of information_schema.OPTIMIZER_TRACE

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines