~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/str/hex.cc

  • Committer: Monty Taylor
  • Date: 2010-02-05 08:11:15 UTC
  • mfrom: (1283 build)
  • mto: (1273.13.43 fix_is)
  • mto: This revision was merged to the branch mainline in revision 1300.
  • Revision ID: mordred@inaugust.com-20100205081115-dr82nvrwv4lvw7sd
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <drizzled/function/str/hex.h>
23
23
#include "drizzled/internal/m_string.h"
24
24
 
 
25
namespace drizzled
 
26
{
 
27
 
25
28
/**
26
29
  convert a hex digit into number.
27
30
*/
59
62
 
60
63
    if ((null_value= args[0]->null_value))
61
64
      return 0;
62
 
    ptr= int64_t2str(dec,ans,16);
 
65
    ptr= internal::int64_t2str(dec,ans,16);
63
66
    if (str->copy(ans,(uint32_t) (ptr-ans),default_charset()))
64
67
      return &my_empty_string;                  // End of memory
65
68
    return str;
120
123
  }
121
124
  return &tmp_value;
122
125
}
 
126
 
 
127
} /* namespace drizzled */