~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/length/length.cc

Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
#include <drizzled/server_includes.h>
21
21
#include <drizzled/function/math/int.h>
22
 
#include <drizzled/slot/function.h>
 
22
#include <drizzled/plugin/function.h>
23
23
 
24
24
using namespace std;
25
25
using namespace drizzled;
68
68
{
69
69
  lengthudf= new plugin::Create_function<LengthFunction>("length");
70
70
  lengthudf->addAlias("octet_length");
71
 
  registry.function.add(lengthudf);
 
71
  registry.add(lengthudf);
72
72
  return 0;
73
73
}
74
74
 
75
75
static int finalize(drizzled::plugin::Registry &registry)
76
76
{
77
 
   registry.function.remove(lengthudf);
 
77
   registry.remove(lengthudf);
78
78
   delete lengthudf;
79
79
   return 0;
80
80
}