~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memcached_functions/memc_add.h

  • Committer: Brian Aker
  • Date: 2009-11-12 16:13:04 UTC
  • mfrom: (1211.1.7 staging)
  • Revision ID: brian@gaz-20091112161304-opamiauv36fg0n6u
Rollup of Brian, Padraig, and Stewart patches.

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) 2009, Patrick "CaptTofu" Galbraith, Padraig O'Sullivan
 
4
 * Copyright (c) 2009, Patrick "CaptTofu" Galbraith, Padraig O'Sullivan
5
5
 * All rights reserved.
6
6
 *
7
7
 * Redistribution and use in source and binary forms, with or without
33
33
#ifndef PLUGIN_MEMCACHED_FUNCTIONS_MEMC_ADD_H
34
34
#define PLUGIN_MEMCACHED_FUNCTIONS_MEMC_ADD_H
35
35
 
 
36
#include <drizzled/server_includes.h>
36
37
#include <drizzled/function/str/strfunc.h>
37
38
#include <drizzled/item/func.h>
38
39
#include <string>
41
42
  * @file
42
43
  * memc_add UDF
43
44
*/
44
 
class MemcachedAdd: public drizzled::Item_int_func
 
45
class MemcachedAdd: public Item_int_func
45
46
{
46
 
  drizzled::String value;
47
 
  drizzled::String failure_buff;
 
47
  String value;
 
48
  String failure_buff;
48
49
public:
49
50
  MemcachedAdd()
50
51
    :
51
52
      Item_int_func(),
52
 
      failure_buff("0", &drizzled::my_charset_bin)
 
53
      failure_buff("0", &my_charset_bin)
53
54
  {}
54
55
 
55
56
  const char *func_name() const