~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/rollback.h

  • Committer: Brian Aker
  • Date: 2009-08-18 07:19:56 UTC
  • mfrom: (1116.1.3 stewart)
  • mto: This revision was merged to the branch mainline in revision 1118.
  • Revision ID: brian@gaz-20090818071956-nfpoe9rp3i7p50kx
Merge my branch from Stewart into one branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2009 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2009 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
23
23
 
24
24
#include <drizzled/statement.h>
25
25
 
 
26
class Session;
 
27
 
26
28
namespace drizzled
27
29
{
28
 
class Session;
29
 
 
30
30
namespace statement
31
31
{
32
32
 
33
33
class Rollback : public Statement
34
34
{
35
35
public:
36
 
  Rollback(Session *in_session, bool tx_chain_arg, bool tx_release_arg);
 
36
  Rollback(Session *in_session)
 
37
    :
 
38
      Statement(in_session, SQLCOM_ROLLBACK)
 
39
  {}
37
40
 
38
41
  bool execute();
39
 
 
40
 
  /* Was the CHAIN option using in COMMIT/ROLLBACK? */
41
 
  bool tx_chain;
42
 
 
43
 
  /* Was the RELEASE option used in COMMIT/ROLLBACK? */
44
 
  bool tx_release;
45
42
};
46
43
 
47
 
} /* namespace statement */
 
44
} /* end namespace statement */
48
45
 
49
 
} /* namespace drizzled */
 
46
} /* end namespace drizzled */
50
47
 
51
48
#endif /* DRIZZLED_STATEMENT_ROLLBACK_H */