~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/get_user_var.cc

  • Committer: Olaf van der Spek
  • Date: 2011-10-06 18:18:31 UTC
  • mto: This revision was merged to the branch mainline in revision 2433.
  • Revision ID: olafvdspek@gmail.com-20111006181831-1ix5b80ry7iifbjf
Use lex_string assign(), data() and size()

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
void Item_func_get_user_var::print(String *str)
134
134
{
135
135
  str->append(STRING_WITH_LEN("(@"));
136
 
  str->append(name.str,name.length);
 
136
  str->append(name);
137
137
  str->append(')');
138
138
}
139
139
 
149
149
      ((Item_func*) item)->functype() != functype())
150
150
    return 0;
151
151
  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));
 
152
  return (name.size() == other->name.size() &&
 
153
          !memcmp(name.data(), other->name.data(), name.size()));
154
154
}
155
155
 
156
156
} /* namespace drizzled */