~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/get_user_var.cc

  • Committer: Brian Aker
  • Date: 2010-10-20 20:25:52 UTC
  • mto: (1864.2.1 merge)
  • mto: This revision was merged to the branch mainline in revision 1865.
  • Revision ID: brian@tangent.org-20101020202552-51y5sz5ledoxbp7t
Add support for --with-valgrind

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
 
66
66
void Item_func_get_user_var::fix_length_and_dec()
67
67
{
68
 
  Session *session=current_session;
69
68
  maybe_null=1;
70
69
  decimals=NOT_FIXED_DEC;
71
70
  max_length=MAX_BLOB_WIDTH;
72
71
 
73
 
  var_entry= session->getVariable(name, false);
 
72
  var_entry= session.getVariable(name, false);
74
73
 
75
74
  /*
76
75
    If the variable didn't exist it has been created as a STRING-type.
118
117
 
119
118
bool Item_func_get_user_var::const_item() const
120
119
{
121
 
  return (!var_entry || current_session->getQueryId() != var_entry->update_query_id);
 
120
  return (!var_entry || session.getQueryId() != var_entry->update_query_id);
122
121
}
123
122
 
124
123