The world's most popular open source database
#include <sp_head.h>
Inheritance diagram for sp_instr_cclose:


Public Member Functions | |
| sp_instr_cclose (uint ip, sp_pcontext *ctx, uint c) | |
| virtual | ~sp_instr_cclose () |
| virtual int | execute (THD *thd, uint *nextp) |
| virtual void | print (String *str) |
Private Member Functions | |
| sp_instr_cclose (const sp_instr_cclose &) | |
| void | operator= (sp_instr_cclose &) |
Private Attributes | |
| uint | m_cursor |
Definition at line 1047 of file sp_head.h.
| sp_instr_cclose::sp_instr_cclose | ( | const sp_instr_cclose & | ) | [private] |
| sp_instr_cclose::sp_instr_cclose | ( | uint | ip, | |
| sp_pcontext * | ctx, | |||
| uint | c | |||
| ) | [inline] |
| virtual sp_instr_cclose::~sp_instr_cclose | ( | ) | [inline, virtual] |
| int sp_instr_cclose::execute | ( | THD * | thd, | |
| uint * | nextp | |||
| ) | [virtual] |
Implements sp_instr.
Definition at line 3140 of file sp_head.cc.
References sp_cursor::close(), DBUG_ENTER, DBUG_RETURN, m_cursor, and sp_instr::m_ip.
03141 { 03142 sp_cursor *c= thd->spcont->get_cursor(m_cursor); 03143 int res; 03144 DBUG_ENTER("sp_instr_cclose::execute"); 03145 03146 if (! c) 03147 res= -1; 03148 else 03149 res= c->close(thd); 03150 *nextp= m_ip+1; 03151 DBUG_RETURN(res); 03152 }
Here is the call graph for this function:

| void sp_instr_cclose::operator= | ( | sp_instr_cclose & | ) | [private] |
| void sp_instr_cclose::print | ( | String * | str | ) | [virtual] |
Implements sp_instr.
Definition at line 3156 of file sp_head.cc.
References sp_pcontext::find_cursor(), sp_instr::m_ctx, m_cursor, n, String::qs_append(), String::reserve(), SP_INSTR_UINT_MAXLEN, and STRING_WITH_LEN.
03157 { 03158 LEX_STRING n; 03159 my_bool found= m_ctx->find_cursor(m_cursor, &n); 03160 /* cclose name@offset */ 03161 uint rsrv= SP_INSTR_UINT_MAXLEN+8; 03162 03163 if (found) 03164 rsrv+= n.length; 03165 if (str->reserve(rsrv)) 03166 return; 03167 str->qs_append(STRING_WITH_LEN("cclose ")); 03168 if (found) 03169 { 03170 str->qs_append(n.str, n.length); 03171 str->qs_append('@'); 03172 } 03173 str->qs_append(m_cursor); 03174 }
Here is the call graph for this function:

uint sp_instr_cclose::m_cursor [private] |
1.4.7

