~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/length/length.cc

  • Committer: Brian Aker
  • Date: 2009-12-05 01:48:28 UTC
  • mfrom: (1237.2.12 push)
  • Revision ID: brian@gaz-20091205014828-xd4e29ujttx2xe2j
MergeĀ forĀ staging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
}
64
64
 
65
65
plugin::Create_function<LengthFunction> *lengthudf= NULL;
 
66
plugin::Create_function<LengthFunction> *octet_lengthudf= NULL;
66
67
 
67
68
static int initialize(drizzled::plugin::Registry &registry)
68
69
{
69
70
  lengthudf= new plugin::Create_function<LengthFunction>("length");
70
 
  lengthudf->addAlias("octet_length");
 
71
  octet_lengthudf= new plugin::Create_function<LengthFunction>("octet_length");
71
72
  registry.add(lengthudf);
 
73
  registry.add(octet_lengthudf);
72
74
  return 0;
73
75
}
74
76
 
75
77
static int finalize(drizzled::plugin::Registry &registry)
76
78
{
77
79
   registry.remove(lengthudf);
 
80
   registry.remove(octet_lengthudf);
78
81
   delete lengthudf;
 
82
   delete octet_lengthudf;
79
83
   return 0;
80
84
}
81
85
 
82
 
drizzle_declare_plugin
 
86
DRIZZLE_DECLARE_PLUGIN
83
87
{
84
88
  "length",
85
89
  "1.0",
92
96
  NULL,   /* system variables */
93
97
  NULL    /* config options */
94
98
}
95
 
drizzle_declare_plugin_end;
 
99
DRIZZLE_DECLARE_PLUGIN_END;