~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/lex_string.h

  • Committer: Paul McCullagh
  • Date: 2010-09-22 13:04:27 UTC
  • mto: (1787.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1788.
  • Revision ID: paul.mccullagh@primebase.org-20100922130427-utakdj4ec4uiv1kc
Fixed PBXT recovery and shutdown, added shutdownPlugin() call to all plugins before the plugins are deleted

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)))