~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/bin_string.h

  • 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
 
#ifndef DRIZZLED_ITEM_BIN_STRING_H
21
 
#define DRIZZLED_ITEM_BIN_STRING_H
 
20
#pragma once
22
21
 
23
 
#include <drizzled/charset_info.h>
 
22
#include <drizzled/charset.h>
24
23
#include <drizzled/item/hex_string.h>
25
 
 
26
 
#include "drizzled/visibility.h"
27
 
 
28
 
namespace drizzled
29
 
{
30
 
 
31
 
class Item_bin_string: public Item_hex_string
 
24
#include <drizzled/visibility.h>
 
25
 
 
26
namespace drizzled {
 
27
 
 
28
class Item_bin_string : public Item_hex_string
32
29
{
33
30
public:
34
31
  Item_bin_string(const char *str,uint32_t str_length);
35
32
};
36
33
 
37
 
class DRIZZLED_API Item_result_field :
38
 
  public Item    /* Item with result field */
 
34
class DRIZZLED_API Item_result_field : public Item    /* Item with result field */
39
35
{
40
36
public:
41
37
  Field *result_field;                          /* Save result here */
42
 
  Item_result_field() :result_field(0) {}
 
38
  Item_result_field() : result_field(0) {}
43
39
  // Constructor used for Item_sum/Item_cond_and/or (see Item comment)
44
40
  Item_result_field(Session *session, Item_result_field *item):
45
41
    Item(session, item), result_field(item->result_field)
46
42
  {}
47
 
  ~Item_result_field() {}                       /* Required with gcc 2.95 */
48
43
  Field *get_tmp_table_field() { return result_field; }
49
44
  Field *tmp_table_field(Table *)
50
45
  { return result_field; }
51
46
  table_map used_tables() const { return 1; }
52
47
  virtual void fix_length_and_dec()=0;
53
48
  void set_result_field(Field *field) { result_field= field; }
54
 
  bool is_result_field() { return 1; }
 
49
  bool is_result_field() { return true; }
55
50
  void save_in_result_field(bool no_conversions)
56
51
  {
57
52
    save_in_field(result_field, no_conversions);
61
56
 
62
57
} /* namespace drizzled */
63
58
 
64
 
#endif /* DRIZZLED_ITEM_BIN_STRING_H */