~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/lex_string.h

  • Committer: Brian Aker
  • Date: 2010-02-14 01:56:51 UTC
  • mto: (1273.16.5 fix_is)
  • mto: This revision was merged to the branch mainline in revision 1300.
  • Revision ID: brian@gaz-20100214015651-ror9j0xu7dccz0ct
Two fixes for "make dist"

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
  size_t length;
37
37
} LEX_STRING;
38
38
 
39
 
struct execute_string_t : public drizzle_lex_string
40
 
{
41
 
private:
42
 
  bool is_variable;
43
 
public:
44
 
 
45
 
  bool isVariable() const
46
 
  {
47
 
    return is_variable;
48
 
  }
49
 
 
50
 
  void set(const drizzle_lex_string& ptr, bool is_variable_arg= false)
51
 
  {
52
 
    is_variable= is_variable_arg;
53
 
    str= ptr.str;
54
 
    length= ptr.length;
55
 
  }
56
 
 
57
 
};
58
 
 
59
39
 
60
40
#define STRING_WITH_LEN(X) (X), (static_cast<size_t>((sizeof(X) - 1)))
61
41
#define C_STRING_WITH_LEN(X) (const_cast<char *>((X))), (static_cast<size_t>((sizeof(X) - 1)))