~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: Olaf van der Spek
  • Date: 2011-10-14 10:07:18 UTC
  • mto: This revision was merged to the branch mainline in revision 2438.
  • Revision ID: olafvdspek@gmail.com-20111014100718-n1i5vtysh1gajn70
Use assign(), data() and size()

Show diffs side-by-side

added added

removed removed

Lines of Context:
1692
1692
 
1693
1693
user_var_entry *Session::getVariable(lex_string_t &name, bool create_if_not_exists)
1694
1694
{
1695
 
  return getVariable(std::string(name.data(), name.size()), create_if_not_exists);
 
1695
  return getVariable(to_string(name), create_if_not_exists);
1696
1696
}
1697
1697
 
1698
1698
user_var_entry *Session::getVariable(const std::string  &name, bool create_if_not_exists)