~skinny.moey/drizzle/transaction_log_674588

« back to all changes in this revision

Viewing changes to drizzled/lex_string.h

  • Committer: Joseph Daly
  • Date: 2010-11-17 01:58:53 UTC
  • mfrom: (1926.1.8 build)
  • Revision ID: skinny.moey@gmail.com-20101117015853-ph45cjv2dxlhzow2
merge trunk

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
 
39
59
 
40
60
#define STRING_WITH_LEN(X) (X), (static_cast<size_t>((sizeof(X) - 1)))
41
61
#define C_STRING_WITH_LEN(X) (const_cast<char *>((X))), (static_cast<size_t>((sizeof(X) - 1)))