~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/savepoint.h

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

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_SAVEPOINT_H
 
22
#define DRIZZLED_STATEMENT_SAVEPOINT_H
22
23
 
23
24
#include <drizzled/statement.h>
24
 
#include <drizzled/sql_lex.h>
25
 
 
26
 
namespace drizzled {
27
 
namespace statement {
 
25
 
 
26
namespace drizzled
 
27
{
 
28
class Session;
 
29
 
 
30
namespace statement
 
31
{
28
32
 
29
33
class Savepoint : public Statement
30
34
{
32
36
  Savepoint(Session *in_session, const lex_string_t &ident) :
33
37
    Statement(in_session)
34
38
  {
35
 
    set_command(SQLCOM_SAVEPOINT);
36
 
    lex().ident= ident;
 
39
    getSession()->getLex()->sql_command= SQLCOM_SAVEPOINT;
 
40
    getSession()->getLex()->ident= ident;
37
41
  }
38
42
 
39
43
  bool execute();
44
48
};
45
49
 
46
50
} /* namespace statement */
 
51
 
47
52
} /* namespace drizzled */
 
53
 
 
54
#endif /* DRIZZLED_STATEMENT_SAVEPOINT_H */