~eday/drizzle/eday-dev

« back to all changes in this revision

Viewing changes to drizzled/item/bin_string.cc

  • Committer: Eric Day
  • Date: 2010-01-07 20:02:38 UTC
  • mfrom: (971.3.291 staging)
  • Revision ID: eday@oddments.org-20100107200238-uqw8v6kv9pl7nny5
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include <drizzled/server_includes.h>
21
 
#include CSTDINT_H
 
20
#include "config.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);