~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement.h

  • Committer: Monty Taylor
  • Date: 2009-09-22 23:50:12 UTC
  • mto: This revision was merged to the branch mainline in revision 1184.
  • Revision ID: mordred@inaugust.com-20090922235012-i0a3bs91f6krqduc
Fixed multi_malloc.h include guard.
Added include guard checking script.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLED_STATEMENT_H
22
22
#define DRIZZLED_STATEMENT_H
23
23
 
 
24
#include <drizzled/server_includes.h>
24
25
#include <drizzled/definitions.h>
25
26
#include <drizzled/error.h>
26
27
#include <drizzled/sql_parse.h>
27
28
#include <drizzled/sql_base.h>
28
29
#include <drizzled/show.h>
29
30
 
30
 
namespace drizzled
31
 
{
32
 
 
33
31
class Session;
34
32
class TableList;
35
33
class Item;
36
34
 
 
35
namespace drizzled
 
36
{
37
37
namespace statement
38
38
{
39
39
 
44
44
class Statement
45
45
{
46
46
public:
47
 
  Statement(Session *in_session)
 
47
  Statement(Session *in_session,
 
48
            enum enum_sql_command in_type)
48
49
    : 
49
 
      session(in_session)
 
50
      session(in_session),
 
51
      type(in_type)
50
52
  {}
51
53
 
52
54
  virtual ~Statement() {}
58
60
   */
59
61
  virtual bool execute()= 0;
60
62
 
61
 
  Session *getSession()
62
 
  {
63
 
    return session;
64
 
  }
65
 
 
66
63
protected:
67
64
 
68
65
  /**
69
66
   * A session handler.
70
67
   */
71
68
  Session *session;
 
69
 
 
70
  enum enum_sql_command type;
72
71
};
73
72
 
74
 
} /* namespace statement */
 
73
} /* end namespace statement */
75
74
 
76
 
} /* namespace drizzled */
 
75
} /* end namespace drizzled */
77
76
 
78
77
#endif /* DRIZZLED_STATEMENT_H */