~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/bin_string.cc

  • Committer: Brian Aker
  • Date: 2009-02-05 09:11:16 UTC
  • Revision ID: brian@tangent.org-20090205091116-iy0ersp6bhyzt1ad
Removed dead variables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include "config.h"
 
20
#include <drizzled/server_includes.h>
 
21
#include CSTDINT_H
21
22
#include <drizzled/item/bin_string.h>
22
23
 
23
 
namespace drizzled
24
 
{
25
 
 
26
24
/*
27
25
  bin item.
28
26
  In string context this is a binary string. 
36
34
  uint32_t power= 1;
37
35
 
38
36
  max_length= (str_length + 7) >> 3;
39
 
  char *ptr= (char*) memory::sql_alloc(max_length + 1);
 
37
  char *ptr= (char*) sql_alloc(max_length + 1);
40
38
  if (!ptr)
41
39
    return;
42
40
  str_value.set(ptr, max_length, &my_charset_bin);
60
58
}
61
59
 
62
60
 
63
 
} /* namespace drizzled */