~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/show.h

  • Committer: Olaf van der Spek
  • Date: 2011-04-20 09:27:49 UTC
  • mto: This revision was merged to the branch mainline in revision 2285.
  • Revision ID: olafvdspek@gmail.com-20110420092749-hw1q9rfj1pumc2no
Session Cache

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
 
4
 *  Copyright (C) 2009 Sun Microsystems, Inc.
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
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef DRIZZLED_STATEMENT_SHOW_H
22
 
#define DRIZZLED_STATEMENT_SHOW_H
 
21
#pragma once
23
22
 
24
23
#include <drizzled/statement/select.h>
25
24
 
26
 
namespace drizzled
27
 
{
28
 
class Session;
29
 
 
30
 
namespace statement
31
 
{
 
25
namespace drizzled {
 
26
namespace statement {
32
27
 
33
28
class Show : public Select
34
29
{
38
33
  bool if_exists;
39
34
 
40
35
public:
41
 
  Show(Session *in_session)
42
 
    :
43
 
      Select(in_session),
44
 
      if_exists(false)
45
 
  {}
 
36
  Show(Session *in_session);
46
37
 
47
38
  void setShowPredicate(const std::string &schema_arg, const std::string &table_arg)
48
39
  {
76
67
  }
77
68
 
78
69
  bool execute();
 
70
 
 
71
  bool isShow() { return true; }
79
72
};
80
73
 
81
74
} /* namespace statement */
82
75
} /* namespace drizzled */
83
76
 
84
 
#endif /* DRIZZLED_STATEMENT_SHOW_H */