~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/user_var_as_out_param.cc

  • Committer: Brian Aker
  • Date: 2009-04-17 01:45:33 UTC
  • Revision ID: brian@gaz-20090417014533-exdrtriab9zecqs2
Refactor get_variable to session

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include CSTDINT_H
22
22
#include <drizzled/function/user_var_as_out_param.h>
23
23
#include <drizzled/session.h>
24
 
#include <drizzled/function/get_variable.h>
25
24
#include <drizzled/function/update_hash.h>
26
25
 
27
26
bool Item_user_var_as_out_param::fix_fields(Session *session, Item **ref)
28
27
{
29
28
  assert(fixed == 0);
30
29
  if (Item::fix_fields(session, ref) ||
31
 
      !(entry= get_variable(&session->user_vars, name, 1)))
 
30
      !(entry= session->getVariable(name, true)))
32
31
    return true;
33
32
  entry->type= STRING_RESULT;
34
33
  /*