~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/rollback_to_savepoint.h

Refactor

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_ROLLBACK_TO_SAVEPOINT_H
22
 
#define DRIZZLED_STATEMENT_ROLLBACK_TO_SAVEPOINT_H
 
21
#pragma once
23
22
 
24
23
#include <drizzled/statement.h>
25
 
 
26
 
namespace drizzled
27
 
{
 
24
#include <drizzled/sql_lex.h>
 
25
 
 
26
namespace drizzled {
 
27
 
28
28
class Session;
29
29
 
30
 
namespace statement
31
 
{
 
30
namespace statement {
32
31
 
33
32
class RollbackToSavepoint : public Statement
34
33
{
36
35
  RollbackToSavepoint(Session *in_session, const lex_string_t &ident) :
37
36
    Statement(in_session)
38
37
  {
39
 
    getSession()->getLex()->sql_command= SQLCOM_ROLLBACK_TO_SAVEPOINT;
40
 
    getSession()->getLex()->ident= ident;
 
38
    set_command(SQLCOM_ROLLBACK_TO_SAVEPOINT);
 
39
    lex().ident= ident;
41
40
  }
42
41
 
43
42
  bool execute();
48
47
};
49
48
 
50
49
} /* namespace statement */
51
 
 
52
50
} /* namespace drizzled */
53
 
 
54
 
#endif /* DRIZZLED_STATEMENT_ROLLBACK_TO_SAVEPOINT_H */