~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/crc32/crc32udf.cc

  • Committer: Jay Pipes
  • Date: 2009-12-08 17:46:38 UTC
  • mfrom: (1240 staging)
  • mto: This revision was merged to the branch mainline in revision 1245.
  • Revision ID: jpipes@serialcoder-20091208174638-exwaq2vbq0bzvyze
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#include <drizzled/server_includes.h>
21
21
#include <drizzled/plugin/function.h>
22
22
#include <drizzled/item/func.h>
23
 
#include <zlib.h>
 
23
#include <drizzled/hash/crc32.h>
24
24
 
25
25
#include <string>
26
26
 
66
66
  }
67
67
 
68
68
  null_value= false;
69
 
  return (int64_t) crc32(0L, (unsigned char*)res->ptr(), res->length());
 
69
  return static_cast<int64_t>(drizzled::hash::crc32(res->ptr(), res->length()));
70
70
}
71
71
 
72
72
plugin::Create_function<Crc32Function> *crc32udf= NULL;
85
85
  return 0;
86
86
}
87
87
 
88
 
drizzle_declare_plugin
 
88
DRIZZLE_DECLARE_PLUGIN
89
89
{
90
90
  "crc32",
91
91
  "1.0",
98
98
  NULL,   /* system variables */
99
99
  NULL    /* config options */
100
100
}
101
 
drizzle_declare_plugin_end;
 
101
DRIZZLE_DECLARE_PLUGIN_END;