~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/crc32/crc32udf.cc

  • Committer: Monty Taylor
  • Date: 2009-11-29 19:55:08 UTC
  • mto: (1237.1.1 push)
  • mto: This revision was merged to the branch mainline in revision 1238.
  • Revision ID: mordred@inaugust.com-20091129195508-1j01ofnug6hhlo05
Logging modules.

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;