~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/set_var.h

  • Committer: Monty Taylor
  • Date: 2010-12-30 19:33:46 UTC
  • mto: This revision was merged to the branch mainline in revision 2048.
  • Revision ID: mordred@inaugust.com-20101230193346-hk2cxznx3esw2m3x
Replaced List<set_var_base> with
std::vector<boost::shared_ptr<set_var_base>> (and removed the mem_root)

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef DRIZZLED_SET_VAR_H
21
21
#define DRIZZLED_SET_VAR_H
22
22
 
 
23
#include <boost/shared_ptr.hpp>
 
24
 
23
25
#include "drizzled/memory/sql_alloc.h"
24
26
#include "drizzled/sql_list.h"
25
27
#include "drizzled/lex_string.h"
51
53
  Classes for parsing of the SET command
52
54
****************************************************************************/
53
55
 
54
 
class set_var_base :
55
 
  public memory::SqlAlloc
 
56
class set_var_base
56
57
{
57
58
public:
58
59
  set_var_base() {}
101
102
  int update(Session *session);
102
103
};
103
104
 
104
 
int sql_set_variables(Session *session, List<set_var_base> *var_list);
 
105
typedef boost::shared_ptr<set_var_base> SetVarPtr;
 
106
typedef std::vector<SetVarPtr> SetVarVector;
 
107
int sql_set_variables(Session *session, const SetVarVector &var_list);
105
108
 
106
109
} /* namespace drizzled */
107
110