~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/null.cc

  • Committer: Monty Taylor
  • Date: 2009-09-16 18:18:47 UTC
  • mto: (1128.1.1 captain-20090921-01)
  • mto: This revision was merged to the branch mainline in revision 1132.
  • Revision ID: mordred@inaugust.com-20090916181847-2qqbr62u1bjc8otr
Removed unused dtrace.m4 file.

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"
21
 
 
22
 
#include <drizzled/field.h>
 
20
#include <drizzled/server_includes.h>
 
21
#include CSTDINT_H
 
22
#include <drizzled/plugin/protocol.h>
23
23
#include <drizzled/item/null.h>
24
24
#include <drizzled/lex_string.h>
25
 
#include <drizzled/plugin/client.h>
26
25
 
27
 
namespace drizzled
28
 
{
 
26
using namespace drizzled;
29
27
 
30
28
bool Item_null::eq(const Item *item, bool) const
31
29
{ return item->type() == type(); }
53
51
  return 0;
54
52
}
55
53
 
56
 
type::Decimal *Item_null::val_decimal(type::Decimal *)
 
54
my_decimal *Item_null::val_decimal(my_decimal *)
57
55
{
58
56
  return 0;
59
57
}
110
108
  Pack data in buffer for sending.
111
109
*/
112
110
 
113
 
bool Item_null::send(plugin::Client *client, String *)
 
111
bool Item_null::send(plugin::Protocol *protocol,
 
112
                     String *)
114
113
{
115
 
  return client->store();
 
114
  return protocol->store();
116
115
}
117
116
 
118
 
} /* namespace drizzled */
 
117
 
 
118
 
 
119