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


Public Member Functions | |
| sp_instr_error (uint ip, sp_pcontext *ctx, int errcode) | |
| virtual | ~sp_instr_error () |
| virtual int | execute (THD *thd, uint *nextp) |
| virtual void | print (String *str) |
| virtual uint | opt_mark (sp_head *sp) |
Private Member Functions | |
| sp_instr_error (const sp_instr_error &) | |
| void | operator= (sp_instr_error &) |
Private Attributes | |
| int | m_errcode |
Definition at line 1105 of file sp_head.h.
| sp_instr_error::sp_instr_error | ( | const sp_instr_error & | ) | [private] |
| sp_instr_error::sp_instr_error | ( | uint | ip, | |
| sp_pcontext * | ctx, | |||
| int | errcode | |||
| ) | [inline] |
| virtual sp_instr_error::~sp_instr_error | ( | ) | [inline, virtual] |
| int sp_instr_error::execute | ( | THD * | thd, | |
| uint * | nextp | |||
| ) | [virtual] |
Implements sp_instr.
Definition at line 3234 of file sp_head.cc.
References DBUG_ENTER, DBUG_RETURN, ER, m_errcode, sp_instr::m_ip, my_message(), and MYF.
03235 { 03236 DBUG_ENTER("sp_instr_error::execute"); 03237 03238 my_message(m_errcode, ER(m_errcode), MYF(0)); 03239 *nextp= m_ip+1; 03240 DBUG_RETURN(-1); 03241 }
Here is the call graph for this function:

| void sp_instr_error::operator= | ( | sp_instr_error & | ) | [private] |
Reimplemented from sp_instr.
Definition at line 1123 of file sp_head.h.
References sp_instr::marked.
01124 { 01125 marked= 1; 01126 return UINT_MAX; 01127 }
| void sp_instr_error::print | ( | String * | str | ) | [virtual] |
Implements sp_instr.
Definition at line 3245 of file sp_head.cc.
References m_errcode, String::qs_append(), String::reserve(), SP_INSTR_UINT_MAXLEN, and STRING_WITH_LEN.
03246 { 03247 /* error code */ 03248 if (str->reserve(SP_INSTR_UINT_MAXLEN+6)) 03249 return; 03250 str->qs_append(STRING_WITH_LEN("error ")); 03251 str->qs_append(m_errcode); 03252 }
Here is the call graph for this function:

int sp_instr_error::m_errcode [private] |
1.4.7

