~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/set_user_var.h

  • Committer: Brian Aker
  • Date: 2011-02-12 08:10:17 UTC
  • mto: This revision was merged to the branch mainline in revision 2161.
  • Revision ID: brian@tangent.org-20110212081017-7793i41ybt7gp5ty
More removal of session from includes.

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
 
#pragma once
 
20
#ifndef DRIZZLED_FUNCTION_SET_USER_VAR_H
 
21
#define DRIZZLED_FUNCTION_SET_USER_VAR_H
21
22
 
22
23
#include <drizzled/function/func.h>
23
24
 
24
 
namespace drizzled {
 
25
namespace drizzled
 
26
{
25
27
 
26
28
/* Handling of user definable variables */
27
29
 
 
30
class user_var_entry;
 
31
 
28
32
class Item_func_set_user_var :public Item_func
29
33
{
30
34
  enum Item_result cached_result_type;
55
59
  int64_t val_int_result();
56
60
  String *str_result(String *str);
57
61
  type::Decimal *val_decimal_result(type::Decimal *);
58
 
  void update_hash(void *ptr, uint32_t length, enum Item_result type,
59
 
                   const charset_info_st * const cs, Derivation dv, bool unsigned_arg);
 
62
  bool update_hash(void *ptr, uint32_t length, enum Item_result type,
 
63
                   const CHARSET_INFO * const cs, Derivation dv, bool unsigned_arg);
60
64
  bool send(plugin::Client *client, String *str_arg);
61
65
  void make_field(SendField *tmp_field);
62
66
  bool check(bool use_result_field);
63
 
  void update();
64
 
  Item_result result_type () const { return cached_result_type; }
 
67
  bool update();
 
68
  enum Item_result result_type () const { return cached_result_type; }
65
69
  bool fix_fields(Session *session, Item **ref);
66
70
  void fix_length_and_dec();
67
 
  virtual void print(String *str);
 
71
  virtual void print(String *str, enum_query_type query_type);
68
72
 
69
73
  const char *func_name() const { return "set_user_var"; }
70
74
  int save_in_field(Field *field, bool no_conversions,
79
83
 
80
84
} /* namespace drizzled */
81
85
 
 
86
#endif /* DRIZZLED_FUNCTION_SET_USER_VAR_H */