~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement.h

  • Committer: Monty Taylor
  • Date: 2010-12-22 03:15:22 UTC
  • mto: (2023.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2024.
  • Revision ID: mordred@inaugust.com-20101222031522-bmi73y3y00f480qs
Fixed some valgrind warning suppressions which were getting fooled by a
different stack.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
class Statement
45
45
{
46
46
public:
47
 
  Statement(Session *in_session) : 
48
 
    _session(in_session)
 
47
  Statement(Session *in_session)
 
48
    : 
 
49
      session(in_session)
49
50
  {}
50
51
 
51
52
  virtual ~Statement() {}
57
58
   */
58
59
  virtual bool execute()= 0;
59
60
 
60
 
  /* True if can be in transaction. Currently only DDL is not.
61
 
     This should go away when DDL commands are within transactions. */
62
 
  virtual bool isTransactional()
63
 
  {
64
 
    return false;
65
 
  }
66
 
 
67
61
  Session *getSession()
68
62
  {
69
 
    return _session;
70
 
  }
71
 
 
72
 
  Session *getSession() const
73
 
  {
74
 
    return _session;
75
 
  }
76
 
 
77
 
  virtual bool isShow() { return false; }
78
 
 
79
 
private:
 
63
    return session;
 
64
  }
 
65
 
 
66
protected:
 
67
 
80
68
  /**
81
69
   * A session handler.
82
70
   */
83
 
  Session *_session;
 
71
  Session *session;
84
72
};
85
73
 
86
74
} /* namespace statement */