~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/null.cc

  • Committer: Mark Atwood
  • Date: 2011-08-11 03:05:03 UTC
  • mfrom: (2385.1.12 refactor4)
  • Revision ID: me@mark.atwood.name-20110811030503-rp9xjihc5x3y0x4q
mergeĀ lp:~olafvdspek/drizzle/refactor4

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