~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/bin_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/item/bin_string.h>
23
22
 
 
23
using namespace drizzled;
 
24
 
24
25
/*
25
26
  bin item.
26
27
  In string context this is a binary string. 
34
35
  uint32_t power= 1;
35
36
 
36
37
  max_length= (str_length + 7) >> 3;
37
 
  char *ptr= (char*) sql_alloc(max_length + 1);
 
38
  char *ptr= (char*) memory::sql_alloc(max_length + 1);
38
39
  if (!ptr)
39
40
    return;
40
41
  str_value.set(ptr, max_length, &my_charset_bin);