~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: Olaf van der Spek
  • Date: 2011-02-23 00:39:48 UTC
  • mto: (2197.1.2 build) (2209.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2198.
  • Revision ID: olafvdspek@gmail.com-20110223003948-u7hv60z4avbxwr83
Add find_ptr

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
#include <drizzled/transaction_services.h>
67
67
#include <drizzled/user_var_entry.h>
68
68
#include <drizzled/util/functors.h>
 
69
#include <drizzled/find_ptr.h>
69
70
#include <plugin/myisam/myisam.h>
70
71
 
71
72
#include <algorithm>
1779
1780
  if (cleanup_done)
1780
1781
    return NULL;
1781
1782
 
1782
 
  UserVars::iterator iter= user_vars.find(name);
1783
 
  if (iter != user_vars.end())
1784
 
    return (*iter).second;
 
1783
  if (UserVars::mapped_type* iter= find_ptr(user_vars, name))
 
1784
    return *iter;
1785
1785
 
1786
1786
  if (not create_if_not_exists)
1787
1787
    return NULL;