~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/hex_string.cc

  • Committer: Monty Taylor
  • Date: 2009-12-27 00:49:03 UTC
  • mto: This revision was merged to the branch mainline in revision 1255.
  • Revision ID: mordred@inaugust.com-20091227004903-maw7ktxu6i6hye9b
Moved mem_root functions into drizzled::memory:: namespace.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 */
19
19
 
20
20
#include "config.h"
21
 
#include CSTDINT_H
22
21
#include <drizzled/error.h>
23
22
#include <drizzled/item/string.h>
24
23
#include <drizzled/item/hex_string.h>
25
24
 
26
25
#include <algorithm>
27
26
 
 
27
using namespace drizzled;
28
28
using namespace std;
29
29
 
30
30
static char _dig_vec_lower[] =
40
40
Item_hex_string::Item_hex_string(const char *str, uint32_t str_length)
41
41
{
42
42
  max_length=(str_length+1)/2;
43
 
  char *ptr=(char*) sql_alloc(max_length+1);
 
43
  char *ptr=(char*) memory::sql_alloc(max_length+1);
44
44
  if (!ptr)
45
45
    return;
46
46
  str_value.set(ptr,max_length,&my_charset_bin);