~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement.h

  • Committer: lbieber
  • Date: 2010-10-01 13:06:31 UTC
  • mfrom: (1802.2.2 drizzle-bug-651948)
  • mto: This revision was merged to the branch mainline in revision 1805.
  • Revision ID: lbieber@orisndriz08-20101001130631-xubscnhmj7r5dn6g
Merge Andrew - Fix bug 651948 - Index lengths not retrieved using drizzledump

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
 
  Session *getSession()
68
 
  {
69
 
    return _session;
70
 
  }
71
 
 
72
 
  Session *getSession() const
73
 
  {
74
 
    return _session;
75
 
  }
76
 
 
77
 
  virtual bool isShow() { return false; }
78
 
 
79
 
private:
 
61
protected:
 
62
 
80
63
  /**
81
64
   * A session handler.
82
65
   */
83
 
  Session *_session;
 
66
  Session *session;
84
67
};
85
68
 
86
69
} /* namespace statement */