~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/compression/uncompress.h

  • Committer: Mark Atwood
  • Date: 2011-10-27 05:08:12 UTC
  • mfrom: (2445.1.11 rf)
  • Revision ID: me@mark.atwood.name-20111027050812-1icvs72lb0u4xdc4
mergeĀ lp:~olafvdspek/drizzle/refactor8

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
 
#ifndef PLUGIN_COMPRESSION_UNCOMPRESS_H
21
 
#define PLUGIN_COMPRESSION_UNCOMPRESS_H
 
20
#pragma once
22
21
 
23
 
#include <drizzled/session.h>
24
22
#include <drizzled/error.h>
25
23
#include <drizzled/function/str/strfunc.h>
26
24
 
27
 
class Item_func_uncompress: public drizzled::Item_str_func
 
25
class Item_func_uncompress : public drizzled::Item_str_func
28
26
{
29
27
  drizzled::String buffer;
30
28
public:
31
 
  Item_func_uncompress(): Item_str_func(){}
32
 
  virtual ~Item_func_uncompress() {}
33
29
  void fix_length_and_dec(){ maybe_null= 1; max_length= MAX_BLOB_WIDTH; }
34
30
  bool check_argument_count(int n) { return (n==1); }
35
31
  const char *func_name() const{return "uncompress";}
37
33
};
38
34
 
39
35
 
40
 
#endif /* PLUGIN_COMPRESSION_UNCOMPRESS_H */