~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/rollback_to_savepoint.h

  • Committer: Olaf van der Spek
  • Date: 2011-03-24 00:16:14 UTC
  • mto: This revision was merged to the branch mainline in revision 2251.
  • Revision ID: olafvdspek@gmail.com-20110324001614-wvmgc6eg52oq2321
Remove const_reference and reference from Session

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
{
35
34
public:
36
 
  RollbackToSavepoint(Session *in_session)
37
 
    :
38
 
      Statement(in_session)
39
 
  {}
 
35
  RollbackToSavepoint(Session *in_session, const lex_string_t &ident) :
 
36
    Statement(in_session)
 
37
  {
 
38
    set_command(SQLCOM_ROLLBACK_TO_SAVEPOINT);
 
39
    lex().ident= ident;
 
40
  }
40
41
 
41
42
  bool execute();
 
43
  bool isTransactional()
 
44
  {
 
45
    return true;
 
46
  }
42
47
};
43
48
 
44
49
} /* namespace statement */
45
 
 
46
50
} /* namespace drizzled */
47
 
 
48
 
#endif /* DRIZZLED_STATEMENT_ROLLBACK_TO_SAVEPOINT_H */