~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/release_savepoint.h

  • Committer: Olaf van der Spek
  • Date: 2011-04-05 12:26:58 UTC
  • mto: (2278.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2272.
  • Revision ID: olafvdspek@gmail.com-20110405122658-xxrvmobwwwwf3oct
Refactor Open_tables_state

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef DRIZZLED_STATEMENT_RELEASE_SAVEPOINT_H
22
 
#define DRIZZLED_STATEMENT_RELEASE_SAVEPOINT_H
 
21
#pragma once
23
22
 
24
23
#include <drizzled/statement.h>
 
24
#include <drizzled/sql_lex.h>
25
25
 
26
 
namespace drizzled
27
 
{
28
 
namespace statement
29
 
{
 
26
namespace drizzled {
 
27
namespace statement {
30
28
 
31
29
class ReleaseSavepoint : public Statement
32
30
{
34
32
  ReleaseSavepoint(Session *in_session, const lex_string_t &ident) :
35
33
    Statement(in_session)
36
34
  {
37
 
    getSession()->getLex()->sql_command= SQLCOM_RELEASE_SAVEPOINT;
38
 
    getSession()->getLex()->ident= ident;
 
35
    set_command(SQLCOM_RELEASE_SAVEPOINT);
 
36
    lex().ident= ident;
39
37
  }
40
38
 
41
39
  bool execute();
46
44
};
47
45
 
48
46
} /* namespace statement */
49
 
 
50
47
} /* namespace drizzled */
51
48
 
52
 
#endif /* DRIZZLED_STATEMENT_RELEASE_SAVEPOINT_H */