~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/command/commit.h

  • Committer: Monty Taylor
  • Date: 2009-08-17 18:46:08 UTC
  • mto: (1182.1.1 staging)
  • mto: This revision was merged to the branch mainline in revision 1183.
  • Revision ID: mordred@inaugust.com-20090817184608-0b2emowpjr9m6le7
"Fixed" the deadlock test. I'd still like someone to look at what's going on here.

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_COMMIT_H
22
 
#define DRIZZLED_STATEMENT_COMMIT_H
23
 
 
24
 
#include <drizzled/statement.h>
 
21
#ifndef DRIZZLED_COMMAND_COMMIT_H
 
22
#define DRIZZLED_COMMAND_COMMIT_H
 
23
 
 
24
#include <drizzled/command.h>
 
25
 
 
26
class Session;
25
27
 
26
28
namespace drizzled
27
29
{
28
 
class Session;
29
 
 
30
 
namespace statement
 
30
namespace command
31
31
{
32
32
 
33
 
class Commit : public Statement
 
33
class Commit : public SqlCommand
34
34
{
35
35
public:
36
 
  Commit(Session *in_session)
 
36
  Commit(enum enum_sql_command in_comm_type,
 
37
         Session *in_session)
37
38
    :
38
 
      Statement(in_session)
 
39
      SqlCommand(in_comm_type, in_session)
39
40
  {}
40
41
 
41
 
  bool execute();
42
 
 
43
 
  /* Was the CHAIN option using in COMMIT/ROLLBACK? */
44
 
  bool tx_chain;
45
 
 
46
 
  /* Was the RELEASE option used in COMMIT/ROLLBACK? */
47
 
  bool tx_release;
 
42
  int execute();
48
43
};
49
44
 
50
 
} /* namespace statement */
51
 
 
52
 
} /* namespace drizzled */
53
 
 
54
 
#endif /* DRIZZLED_STATEMENT_COMMIT_H */
 
45
} /* end namespace command */
 
46
 
 
47
} /* end namespace drizzled */
 
48
 
 
49
#endif /* DRIZZLED_COMMAND_COMMIT_H */