~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/commit.h

  • Committer: Olaf van der Spek
  • Date: 2011-07-05 13:16:34 UTC
  • mto: This revision was merged to the branch mainline in revision 2384.
  • Revision ID: olafvdspek@gmail.com-20110705131634-f7g1fjro5slibmdj
Add data_ref.h
Use str_ref for append_identifier

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