~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/null.cc

  • Committer: Olaf van der Spek
  • Date: 2011-10-10 09:27:50 UTC
  • mto: (2430.1.6 rf)
  • mto: This revision was merged to the branch mainline in revision 2436.
  • Revision ID: olafvdspek@gmail.com-20111010092750-ryxgmn7zj5yvxfkf
Refactor

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 "config.h"
 
20
#include <config.h>
21
21
 
22
 
#include <drizzled/plugin/client.h>
 
22
#include <drizzled/field.h>
23
23
#include <drizzled/item/null.h>
24
24
#include <drizzled/lex_string.h>
 
25
#include <drizzled/plugin/client.h>
25
26
 
26
 
namespace drizzled
27
 
{
 
27
namespace drizzled {
28
28
 
29
29
bool Item_null::eq(const Item *item, bool) const
30
30
{ return item->type() == type(); }
52
52
  return 0;
53
53
}
54
54
 
55
 
my_decimal *Item_null::val_decimal(my_decimal *)
 
55
type::Decimal *Item_null::val_decimal(type::Decimal *)
56
56
{
57
57
  return 0;
58
58
}
59
59
 
60
60
 
61
 
void Item_null::print(String *str, enum_query_type)
 
61
void Item_null::print(String *str)
62
62
{
63
63
  str->append(STRING_WITH_LEN("NULL"));
64
64
}
65
65
 
66
66
 
67
 
Item *Item_null::safe_charset_converter(const CHARSET_INFO * const tocs)
 
67
Item *Item_null::safe_charset_converter(const charset_info_st * const tocs)
68
68
{
69
69
  collation.set(tocs);
70
70
  return this;
109
109
  Pack data in buffer for sending.
110
110
*/
111
111
 
112
 
bool Item_null::send(plugin::Client *client, String *)
 
112
void Item_null::send(plugin::Client *client, String *)
113
113
{
114
 
  return client->store();
 
114
  client->store();
115
115
}
116
116
 
117
117
} /* namespace drizzled */