1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-13529 Add class Sql_cmd_call

This commit is contained in:
Alexander Barkov
2017-08-15 14:13:42 +04:00
parent 966cc80299
commit 4d50594dfc
8 changed files with 120 additions and 68 deletions

View File

@ -167,4 +167,33 @@ protected:
}
};
/**
Sql_cmd_call represents the CALL statement.
*/
class Sql_cmd_call : public Sql_cmd
{
public:
class sp_name *m_name;
Sql_cmd_call(class sp_name *name)
:m_name(name)
{}
virtual ~Sql_cmd_call()
{}
/**
Execute a CALL statement at runtime.
@param thd the current thread.
@return false on success.
*/
bool execute(THD *thd);
virtual enum_sql_command sql_command_code() const
{
return SQLCOM_CALL;
}
};
#endif // SQL_CMD_INCLUDED