~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cache_str.h

  • Committer: Stewart Smith
  • Date: 2010-02-22 07:44:37 UTC
  • mfrom: (1283.17.4)
  • mto: (1283.19.1)
  • mto: This revision was merged to the branch mainline in revision 1449.
  • Revision ID: stewart@flamingspork.com-20100222074437-1a9x1n030tbtv1qv
Merged embeddded-innodb-store-table-proto into embedded-innodb-write-row.

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
19
19
 
20
20
#include <drizzled/item/cache.h>
21
21
 
22
 
#pragma once
23
 
 
24
 
namespace drizzled {
25
 
 
26
 
class Item_cache_str : public Item_cache
 
22
#ifndef DRIZZLED_ITEM_CACHE_STR_H
 
23
#define DRIZZLED_ITEM_CACHE_STR_H
 
24
 
 
25
namespace drizzled
 
26
{
 
27
 
 
28
class Item_cache_str: public Item_cache
27
29
{
28
30
  char buffer[STRING_BUFFER_USUAL_SIZE];
29
31
  String *value, value_buff;
35
37
  double val_real();
36
38
  int64_t val_int();
37
39
  String* val_str(String *) { assert(fixed == 1); return value; }
38
 
  type::Decimal *val_decimal(type::Decimal *);
 
40
  my_decimal *val_decimal(my_decimal *);
39
41
  enum Item_result result_type() const { return STRING_RESULT; }
40
 
  const charset_info_st *charset() const { return value->charset(); };
 
42
  const CHARSET_INFO *charset() const { return value->charset(); };
41
43
  int save_in_field(Field *field, bool no_conversions);
42
44
};
43
45
 
44
46
} /* namespace drizzled */
45
47
 
 
48
#endif /* DRIZZLED_ITEM_CACHE_STR_H */