~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/get_user_var.cc

  • Committer: Mark Atwood
  • Date: 2011-10-08 04:50:51 UTC
  • mfrom: (2430.1.1 rf)
  • Revision ID: me@mark.atwood.name-20111008045051-6ha1qiy7k2a9c3jv
Tags: 2011.10.27
mergeĀ lp:~olafvdspek/drizzle/refactor2

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 */