~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-07-10 01:49:29 UTC
  • mto: (1090.1.1 staging)
  • mto: This revision was merged to the branch mainline in revision 1091.
  • Revision ID: brian@gaz-20090710014929-v8pmvf7woqkld9iv
Cleanup of user_var

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/update_hash.h>
25
24
 
26
25
bool Item_user_var_as_out_param::fix_fields(Session *session, Item **ref)
27
26
{
42
41
 
43
42
void Item_user_var_as_out_param::set_null_value(const CHARSET_INFO * const cs)
44
43
{
45
 
  ::update_hash(entry, true, 0, 0, STRING_RESULT, cs,
46
 
                DERIVATION_IMPLICIT, 0 /* unsigned_arg */);
 
44
  entry->update_hash(true, 0, 0, STRING_RESULT, cs,
 
45
                     DERIVATION_IMPLICIT, 0 /* unsigned_arg */);
47
46
}
48
47
 
49
48
 
50
49
void Item_user_var_as_out_param::set_value(const char *str, uint32_t length,
51
50
                                           const CHARSET_INFO * const cs)
52
51
{
53
 
  ::update_hash(entry, false, (void*)str, length, STRING_RESULT, cs,
 
52
  entry->update_hash(false, (void*)str, length, STRING_RESULT, cs,
54
53
                DERIVATION_IMPLICIT, 0 /* unsigned_arg */);
55
54
}
56
55