~drizzle-pbxt/drizzle/drizzle-pbxt-4-pbxt

« back to all changes in this revision

Viewing changes to plugin/memcached_functions/memc_increment.h

  • Committer: Vladimir Kolesnikov
  • Date: 2010-03-10 13:00:36 UTC
  • mfrom: (1014.3.309 staging)
  • Revision ID: vladimir@primebase.org-20100310130036-gu5qlkwld3rn8g12
merge from upstream lp:drizzle rev.1323

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#ifndef PLUGIN_MEMCACHED_FUNCTIONS_MEMC_INCREMENT_H
33
33
#define PLUGIN_MEMCACHED_FUNCTIONS_MEMC_INCREMENT_H
34
34
 
35
 
#include <drizzled/server_includes.h>
36
35
#include <drizzled/function/str/strfunc.h>
37
36
 
38
37
/* implements memc_increment */
39
 
class MemcachedIncrement : public Item_str_func
 
38
class MemcachedIncrement : public drizzled::Item_str_func
40
39
{
41
40
public:
42
41
  MemcachedIncrement()
43
42
    : 
44
43
      Item_str_func(),
45
 
      failure_buff("FAILURE", &my_charset_bin)
 
44
      failure_buff("FAILURE", &drizzled::my_charset_bin)
46
45
  {}
47
46
 
48
47
  const char *func_name() const
50
49
    return "memc_increment";
51
50
  }
52
51
 
53
 
  String *val_str(String *);
 
52
  drizzled::String *val_str(drizzled::String *);
54
53
 
55
54
  void fix_length_and_dec()
56
55
  {
58
57
  }
59
58
 
60
59
private:
61
 
  String failure_buff;
62
 
  String buffer;
 
60
  drizzled::String failure_buff;
 
61
  drizzled::String buffer;
63
62
};
64
63
 
65
64
#endif /* PLUGIN_MEMCACHED_FUNCTIONS_MEMC_INCREMENT_H */