~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/commit.h

  • Committer: Brian Aker
  • Date: 2011-02-12 08:10:17 UTC
  • mto: This revision was merged to the branch mainline in revision 2161.
  • Revision ID: brian@tangent.org-20110212081017-7793i41ybt7gp5ty
More removal of session from includes.

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
 
#pragma once
 
21
#ifndef DRIZZLED_STATEMENT_COMMIT_H
 
22
#define DRIZZLED_STATEMENT_COMMIT_H
22
23
 
23
24
#include <drizzled/statement.h>
24
25
 
25
 
namespace drizzled {
26
 
namespace statement {
 
26
namespace drizzled
 
27
{
 
28
class Session;
 
29
 
 
30
namespace statement
 
31
{
27
32
 
28
33
class Commit : public Statement
29
34
{
33
38
    tx_chain(tx_chain_arg),
34
39
    tx_release(tx_release_arg)
35
40
  {
36
 
    set_command(SQLCOM_COMMIT);
 
41
    getSession()->getLex()->sql_command= SQLCOM_COMMIT;
37
42
  }
38
43
 
39
44
  bool execute();
49
54
 
50
55
} /* namespace drizzled */
51
56
 
 
57
#endif /* DRIZZLED_STATEMENT_COMMIT_H */