~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/select.h

  • Committer: Brian Aker
  • Date: 2011-02-22 06:12:02 UTC
  • mfrom: (2190.1.6 drizzle-build)
  • Revision ID: brian@tangent.org-20110222061202-k03czxykqy4x9hjs
List update, header fixes, multiple symbols, and David deletes some code.

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
32
32
 
33
33
class Select : public Statement
34
34
{
35
 
  /* These will move out once we have args for table functions */
36
 
  std::string show_schema;
37
 
  std::string show_table;
38
 
  bool if_exists;
39
 
 
40
35
public:
41
 
  Select(Session *in_session)
42
 
    :
43
 
      Statement(in_session),
44
 
      if_exists(false)
45
 
  {}
46
 
 
47
 
  void setShowPredicate(const std::string &schema_arg, const std::string &table_arg)
48
 
  {
49
 
    show_schema= schema_arg;
50
 
    show_table= table_arg;
51
 
  }
52
 
 
53
 
  void setShowPredicate(const std::string &schema_arg)
54
 
  {
55
 
    show_schema= schema_arg;
56
 
  }
57
 
 
58
 
  void setShowExists(bool arg)
59
 
  {
60
 
    if_exists= arg;
61
 
  }
62
 
 
63
 
  bool getShowExists()
64
 
  {
65
 
    return if_exists;
66
 
  }
67
 
 
68
 
  const std::string getShowSchema()
69
 
  {
70
 
    return show_schema;
71
 
  }
72
 
 
73
 
  const std::string getShowTable()
74
 
  {
75
 
    return show_table;
76
 
  }
 
36
  Select(Session *in_session);
77
37
 
78
38
  bool execute();
79
39
};