~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/rollback.h

  • Committer: Padraig O'Sullivan
  • Date: 2009-08-26 03:17:31 UTC
  • mfrom: (1124 staging)
  • mto: This revision was merged to the branch mainline in revision 1139.
  • Revision ID: osullivan.padraig@gmail.com-20090826031731-at2as3ledixngra3
MergeĀ fromĀ trunk.

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_COMMAND_ROLLBACK_H
22
 
#define DRIZZLED_COMMAND_ROLLBACK_H
 
21
#ifndef DRIZZLED_STATEMENT_ROLLBACK_H
 
22
#define DRIZZLED_STATEMENT_ROLLBACK_H
23
23
 
24
 
#include <drizzled/command.h>
 
24
#include <drizzled/statement.h>
25
25
 
26
26
class Session;
27
27
 
28
28
namespace drizzled
29
29
{
30
 
namespace command
 
30
namespace statement
31
31
{
32
32
 
33
 
class Rollback : public SqlCommand
 
33
class Rollback : public Statement
34
34
{
35
35
public:
36
 
  Rollback(enum enum_sql_command in_comm_type,
37
 
           Session *in_session)
 
36
  Rollback(Session *in_session)
38
37
    :
39
 
      SqlCommand(in_comm_type, in_session)
 
38
      Statement(in_session, SQLCOM_ROLLBACK)
40
39
  {}
41
40
 
42
 
  int execute();
 
41
  bool execute();
43
42
};
44
43
 
45
 
} /* end namespace command */
 
44
} /* end namespace statement */
46
45
 
47
46
} /* end namespace drizzled */
48
47
 
49
 
#endif /* DRIZZLED_COMMAND_ROLLBACK_H */
 
48
#endif /* DRIZZLED_STATEMENT_ROLLBACK_H */