~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/user_var_as_out_param.cc

  • Committer: Mark Atwood
  • Date: 2011-10-19 00:10:47 UTC
  • mfrom: (2440.2.13 rf)
  • Revision ID: me@mark.atwood.name-20111019001047-atj0u8gedphon1tb
mergeĀ lp:~olafvdspek/drizzle/refactor5

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
  return false;
45
45
}
46
46
 
47
 
void Item_user_var_as_out_param::set_null_value(const charset_info_st * const cs)
 
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,
50
 
                     DERIVATION_IMPLICIT, 0 /* unsigned_arg */);
 
49
  entry->update_hash(true, data_ref(), STRING_RESULT, cs, DERIVATION_IMPLICIT, 0 /* unsigned_arg */);
51
50
}
52
51
 
53
52
 
54
 
void Item_user_var_as_out_param::set_value(const char *str, uint32_t length,
55
 
                                           const charset_info_st * const cs)
 
53
void Item_user_var_as_out_param::set_value(str_ref str, const charset_info_st* cs)
56
54
{
57
 
  entry->update_hash(false, (void*)str, length, STRING_RESULT, cs,
58
 
                DERIVATION_IMPLICIT, 0 /* unsigned_arg */);
 
55
  entry->update_hash(false, str, STRING_RESULT, cs, DERIVATION_IMPLICIT, 0 /* unsigned_arg */);
59
56
}
60
57
 
61
58
double Item_user_var_as_out_param::val_real()