~/src/percona-server-5.6.24-72.2/plugin/query_response_time/plugin.cc line 152
LEX_STRING *name= &thd->lex->prepared_stmt_name;
(gdb) p thd->lex->prepared_stmt_name $11 = {str = 0x0, length = 0}
But statement name is stored inside private variable:
(gdb) p ((sp_lex_instr *)thd->stmt_arena).m_lex.prepared_stmt_name $17 = {str = 0x7f167c0626e0 "stmt", length = 4}
~/src/percona- server- 5.6.24- 72.2/plugin/ query_response_ time/plugin. cc line 152
LEX_STRING *name= &thd->lex- >prepared_ stmt_name;
(gdb) p thd->lex- >prepared_ stmt_name
$11 = {str = 0x0, length = 0}
But statement name is stored inside private variable:
(gdb) p ((sp_lex_instr *)thd-> stmt_arena) .m_lex. prepared_ stmt_name
$17 = {str = 0x7f167c0626e0 "stmt", length = 4}