~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement.h

  • Committer: Lee Bieber
  • Date: 2010-11-14 23:15:42 UTC
  • mfrom: (1929.1.42 warning-stack-frame)
  • Revision ID: kalebral@gmail.com-20101114231542-fnnu6ydd2p17n582
Merge Monty - fix bug 672372: some functions use > 32k stack

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2009 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2009 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
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 */