~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/user_var_as_out_param.cc

  • Committer: Olaf van der Spek
  • Date: 2011-10-18 11:48:44 UTC
  • mto: This revision was merged to the branch mainline in revision 2443.
  • Revision ID: olafvdspek@gmail.com-20111018114844-yit26aam30a9h5ip
Use data_ref

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
 
47
47
void Item_user_var_as_out_param::set_null_value(const charset_info_st* cs)
48
48
{
49
 
  entry->update_hash(true, 0, 0, STRING_RESULT, cs, DERIVATION_IMPLICIT, 0 /* unsigned_arg */);
 
49
  entry->update_hash(true, data_ref(), STRING_RESULT, cs, DERIVATION_IMPLICIT, 0 /* unsigned_arg */);
50
50
}
51
51
 
52
52
 
53
53
void Item_user_var_as_out_param::set_value(str_ref str, const charset_info_st* cs)
54
54
{
55
 
  entry->update_hash(false, (void*)str.data(), str.size(), STRING_RESULT, cs, DERIVATION_IMPLICIT, 0 /* unsigned_arg */);
 
55
  entry->update_hash(false, str, STRING_RESULT, cs, DERIVATION_IMPLICIT, 0 /* unsigned_arg */);
56
56
}
57
57
 
58
58
double Item_user_var_as_out_param::val_real()