~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/set_user_var.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:
20
20
#include <drizzled/server_includes.h>
21
21
#include CSTDINT_H
22
22
#include <drizzled/function/set_user_var.h>
23
 
#include <drizzled/function/get_variable.h>
24
23
#include <drizzled/function/update_hash.h>
25
24
#include <drizzled/field/num.h>
26
25
#include <drizzled/virtual_column_info.h>
40
39
  assert(fixed == 0);
41
40
  /* fix_fields will call Item_func_set_user_var::fix_length_and_dec */
42
41
  if (Item_func::fix_fields(session, ref) ||
43
 
      !(entry= get_variable(&session->user_vars, name, 1)))
 
42
      !(entry= session->getVariable(name, true)))
44
43
    return true;
45
44
  /*
46
45
     Remember the last query which updated it, this way a query can later know