22#include <drizzled/charset.h>
23#include <drizzled/item/basic_constant.h>
31 Item_null(
const char *name_par=0)
35 name= name_par ? name_par :
"NULL";
37 collation.set(&my_charset_bin, DERIVATION_IGNORABLE);
39 Type type()
const {
return NULL_ITEM; }
40 bool eq(
const Item *item,
bool binary_cmp)
const;
48 enum Item_result result_type ()
const {
return STRING_RESULT; }
49 enum_field_types field_type()
const {
return DRIZZLE_TYPE_NULL; }
59class Item_null_result :
public Item_null
63 Item_null_result() : Item_null(), result_field(0) {}
64 bool is_result_field() {
return result_field != 0; }
65 void save_in_result_field(
bool no_conversions)
String * val_str(String *str)
bool eq(const Item *item, bool binary_cmp) const
int save_in_field(Field *field, bool no_conversions)
virtual void print(String *str)
bool basic_const_item() const
void send(plugin::Client *client, String *str)
int save_safe_in_field(Field *field)
type::Decimal * val_decimal(type::Decimal *)
TODO: Rename this file - func.h is stupid.