~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/boolean.h

  • Committer: Mark Atwood
  • Date: 2011-07-07 02:23:07 UTC
  • mfrom: (2318.6.116 refactor18)
  • Revision ID: me@mark.atwood.name-20110707022307-4db00nqaaczzc3jv
mergeĀ lp:~olafvdspek/drizzle/refactor18

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
#include <drizzled/item/basic_constant.h>
23
23
 
24
 
namespace drizzled
25
 
{
26
 
 
27
 
namespace item
28
 
{
29
 
 
30
 
class Boolean: public Item_basic_constant
 
24
namespace drizzled {
 
25
namespace item {
 
26
 
 
27
class Boolean : public Item_basic_constant
31
28
{
32
29
  bool value;
33
30
 
38
35
  {
39
36
    max_length= value ? 4 : 5;
40
37
    fixed= true;
41
 
    name= (const_cast<char *>(str_arg));
 
38
    name= str_arg;
42
39
  }
43
40
 
44
41
  Boolean(bool arg) :