~ubuntu-branches/ubuntu/saucy/drizzle/saucy-proposed

« back to all changes in this revision

Viewing changes to drizzled/function/get_user_var.cc

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
 
75
75
  /*
76
76
    If the variable didn't exist it has been created as a STRING-type.
77
 
    'var_entry' is NULL only if there occured an error during the call to
78
 
    get_var_with_binlog.
79
77
  */
80
78
  if (var_entry)
81
79
  {
133
131
void Item_func_get_user_var::print(String *str)
134
132
{
135
133
  str->append(STRING_WITH_LEN("(@"));
136
 
  str->append(name.str,name.length);
 
134
  str->append(name);
137
135
  str->append(')');
138
136
}
139
137
 
149
147
      ((Item_func*) item)->functype() != functype())
150
148
    return 0;
151
149
  Item_func_get_user_var *other=(Item_func_get_user_var*) item;
152
 
  return (name.length == other->name.length &&
153
 
          !memcmp(name.str, other->name.str, name.length));
 
150
  return (name.size() == other->name.size() &&
 
151
          !memcmp(name.data(), other->name.data(), name.size()));
154
152
}
155
153
 
156
154
} /* namespace drizzled */