~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/lex_string.h

  • Committer: Brian Aker
  • Date: 2010-11-12 01:19:58 UTC
  • mto: (1932.2.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 1930.
  • Revision ID: brian@tangent.org-20101112011958-88szbj0r0uca1gyk
Fix for Solaris.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
struct execute_string_t : public drizzle_lex_string
40
40
{
 
41
private:
41
42
  bool is_variable;
 
43
public:
42
44
 
43
45
  bool isVariable() const
44
46
  {
45
47
    return is_variable;
46
48
  }
47
49
 
48
 
  void setVariable(bool arg)
49
 
  {
50
 
    is_variable= arg;
51
 
  }
52
 
 
53
 
  execute_string_t& operator=(const drizzle_lex_string& ptr)
54
 
  {
55
 
    is_variable= false;
 
50
  void set(const drizzle_lex_string& ptr, bool is_variable_arg= false)
 
51
  {
 
52
    is_variable= is_variable_arg;
56
53
    str= ptr.str;
57
54
    length= ptr.length;
58
 
 
59
 
    return *this;
60
55
  }
61
56
 
62
57
};