~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/get_user_var.h

  • Committer: Brian Aker
  • Date: 2009-01-24 09:43:35 UTC
  • Revision ID: brian@gir-3.local-20090124094335-6qdtvc35gl5fvivz
Adding in an example singe thread scheduler

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef DRIZZLED_FUNCTION_GET_USER_VAR_H
21
21
#define DRIZZLED_FUNCTION_GET_USER_VAR_H
22
22
 
 
23
class user_var_entry;
23
24
#include <drizzled/function/func.h>
24
25
 
25
 
namespace drizzled
26
 
{
27
 
 
28
 
class user_var_entry;
29
 
 
30
26
class Item_func_get_user_var :public Item_func
31
27
{
32
28
  user_var_entry *var_entry;
33
29
  Item_result m_cached_result_type;
34
 
  Session &session;
35
30
 
36
31
public:
37
32
  LEX_STRING name; // keep it public
38
 
  Item_func_get_user_var(Session &session_arg, LEX_STRING a):
39
 
    Item_func(),
40
 
    m_cached_result_type(STRING_RESULT),
41
 
    session(session_arg),
42
 
    name(a)
43
 
  {}
 
33
  Item_func_get_user_var(LEX_STRING a):
 
34
    Item_func(), m_cached_result_type(STRING_RESULT), name(a) {}
44
35
  enum Functype functype() const { return GUSERVAR_FUNC; }
45
36
  LEX_STRING get_name() { return name; }
46
37
  double val_real();
61
52
  bool eq(const Item *item, bool binary_cmp) const;
62
53
};
63
54
 
64
 
} /* namespace drizzled */
65
 
 
66
55
#endif /* DRIZZLED_FUNCTION_GET_USER_VAR_H */