~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/field.h

  • Committer: Andrew Hutchings
  • Date: 2010-12-15 18:59:55 UTC
  • mto: This revision was merged to the branch mainline in revision 2006.
  • Revision ID: andrew@linuxjedi.co.uk-20101215185955-q12lkja8hdnpjqg7
Make the test look for drizzleadmin failure instead of success as this test is not possible to fix for success on our FreeBSD 8.0 box

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
20
20
#ifndef DRIZZLED_ITEM_FIELD_H
21
21
#define DRIZZLED_ITEM_FIELD_H
22
22
 
23
 
#include <drizzled/item/ident.h>
24
 
 
25
23
namespace drizzled
26
24
{
27
25
 
 
26
extern Item **not_found_item;
28
27
class COND_EQUAL;
29
 
class Item;
30
 
 
31
 
extern Item **not_found_item;
32
28
 
33
29
class Item_field :public Item_ident
34
30
{
68
64
  bool eq(const Item *item, bool binary_cmp) const;
69
65
  double val_real();
70
66
  int64_t val_int();
71
 
  type::Decimal *val_decimal(type::Decimal *);
 
67
  my_decimal *val_decimal(my_decimal *);
72
68
  String *val_str(String*);
73
69
  double val_result();
74
70
  int64_t val_int_result();
75
71
  String *str_result(String* tmp);
76
 
  type::Decimal *val_decimal_result(type::Decimal *);
 
72
  my_decimal *val_decimal_result(my_decimal *);
77
73
  bool val_bool_result();
78
74
  bool send(plugin::Client *client, String *str_arg);
79
75
  void reset_field(Field *f);
89
85
  int64_t val_int_endpoint(bool left_endp, bool *incl_endp);
90
86
  Field *get_tmp_table_field() { return result_field; }
91
87
  Field *tmp_table_field(Table *) { return result_field; }
92
 
  bool get_date(type::Time &ltime,uint32_t fuzzydate);
93
 
  bool get_date_result(type::Time &ltime, uint32_t fuzzydate);
94
 
  bool get_time(type::Time &ltime);
 
88
  bool get_date(DRIZZLE_TIME *ltime,uint32_t fuzzydate);
 
89
  bool get_date_result(DRIZZLE_TIME *ltime,uint32_t fuzzydate);
 
90
  bool get_time(DRIZZLE_TIME *ltime);
95
91
  bool is_null();
96
92
  void update_null_value();
97
93
  Item *get_tmp_table_item(Session *session);