~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/compression/uncompressed_length.h

  • Committer: Monty Taylor
  • Date: 2009-04-25 19:24:49 UTC
  • mto: (997.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 1003.
  • Revision ID: mordred@inaugust.com-20090425192449-0htujbt2r9jzupn5
Moved heap.

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_UNCOMPRESSED_LENGTH_H
21
 
#define PLUGIN_COMPRESSION_UNCOMPRESSED_LENGTH_H
 
20
#ifndef DRIZZLED_PLUGIN_COMPRESSION_UNCOMPRESSED_LENGTH_H
 
21
#define DRIZZLED_PLUGIN_COMPRESSION_UNCOMPRESSED_LENGTH_H
22
22
 
23
 
#include <drizzled/plugin/function.h>
 
23
#include <drizzled/server_includes.h>
 
24
#include <drizzled/sql_udf.h>
24
25
#include <drizzled/function/math/int.h>
25
26
 
26
27
 
27
 
class Item_func_uncompressed_length : public drizzled::Item_int_func
 
28
class Item_func_uncompressed_length : public Item_int_func
28
29
{
29
 
  drizzled::String value;
 
30
  String value;
30
31
public:
31
32
  Item_func_uncompressed_length():Item_int_func(){}
32
33
  const char *func_name() const{return "uncompressed_length";}
33
34
  void fix_length_and_dec() { max_length=10; }
34
 
  bool check_argument_count(int n) { return (n==1); }
35
35
  int64_t val_int();
36
36
};
37
37
 
38
38
 
39
 
#endif /* PLUGIN_COMPRESSION_UNCOMPRESSED_LENGTH_H */
 
39
#endif /* DRIZZLED_PLUGIN_COMPRESSION_UNCOMPRESSED_LENGTH_H */