~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/user_var_entry.h

  • Committer: Jay Pipes
  • Date: 2009-02-21 16:00:06 UTC
  • mto: (907.1.1 trunk-with-temporal)
  • mto: This revision was merged to the branch mainline in revision 908.
  • Revision ID: jpipes@serialcoder-20090221160006-vnk3wt4qbcz62eru
Removes the TIME column type and related time functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLED_USER_VAR_ENTRY_H
22
22
#define DRIZZLED_USER_VAR_ENTRY_H
23
23
 
24
 
#include "drizzled/query_id.h"
25
 
 
26
 
namespace drizzled
27
 
{
28
24
 
29
25
// this is needed for user_vars hash
30
26
class user_var_entry
31
27
{
32
28
 public:
33
 
  user_var_entry(const char *arg, query_id_t id) :
34
 
    value(0),
35
 
    length(0),
36
 
    size(0),
37
 
    update_query_id(0),
38
 
    used_query_id(id),
39
 
    type(STRING_RESULT),
40
 
    unsigned_flag(false),
41
 
    collation(NULL, DERIVATION_IMPLICIT)
42
 
  { 
43
 
    name.str= strdup(arg);
44
 
    name.length= strlen(arg);
45
 
  };
46
 
 
47
 
  ~user_var_entry()
48
 
  {
49
 
    if (name.str) 
50
 
      free(name.str);
51
 
 
52
 
    if (value) 
53
 
      free(value);
54
 
  }
 
29
  user_var_entry() {}                         /* Remove gcc warning */
55
30
  LEX_STRING name;
56
31
  char *value;
57
32
  ulong length;
58
 
  size_t size;
59
 
  query_id_t update_query_id;
60
 
  query_id_t used_query_id;
 
33
  query_id_t update_query_id, used_query_id;
61
34
  Item_result type;
62
35
  bool unsigned_flag;
63
36
 
66
39
  String *val_str(bool *null_value, String *str, uint32_t decimals);
67
40
  my_decimal *val_decimal(bool *null_value, my_decimal *result);
68
41
  DTCollation collation;
69
 
 
70
 
  bool update_hash(bool set_null, void *ptr, uint32_t length,
71
 
                   Item_result type, const CHARSET_INFO * const cs, Derivation dv,
72
 
                   bool unsigned_arg);
73
42
};
74
43
 
75
 
} /* namespace drizzled */
76
 
 
77
44
#endif /* DRIZZLED_USER_VAR_ENTRY_H */