22 #include <drizzled/item/basic_constant.h>
32 Boolean(
const char *str_arg,
bool arg) :
35 max_length= value ? 4 : 5;
43 max_length= value ? 4 : 5;
45 name= value ?
"TRUE" :
"FALSE";
48 enum Type type()
const {
return BOOLEAN_ITEM; }
50 Item_result result_type()
const
72 value_buffer->realloc(5);
76 value_buffer->copy(
"TRUE", 4, default_charset());
80 value_buffer->copy(
"FALSE", 5, default_charset());
96 #include <drizzled/item/true.h>
97 #include <drizzled/item/false.h>
TODO: Rename this file - func.h is stupid.
drizzled::String * val_str(drizzled::String *value_buffer)
type::Decimal * val_decimal(type::Decimal *)