~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/utility_functions/functions.cc

  • Committer: Brian Aker
  • Date: 2010-10-21 08:55:44 UTC
  • mto: (1866.1.1 merge)
  • mto: This revision was merged to the branch mainline in revision 1867.
  • Revision ID: brian@tangent.org-20101021085544-chpce06zm4tdaqdi
This creates a function for seeing which catalog you are in. It also
refactors some of the functions to be in the utility_function collect.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 */
21
21
 
22
22
#include "config.h"
23
 
#include "plugin/util_function/functions.h"
 
23
#include "plugin/utility_functions/functions.h"
24
24
 
25
25
using namespace drizzled;
26
26
 
27
27
static int init(drizzled::module::Context &context)
28
28
{
29
 
  context.add(new plugin::Create_function<util_function::Catalog>("catalog"));
30
 
  context.add(new plugin::Create_function<util_function::Schema>("database"));
31
 
  context.add(new plugin::Create_function<util_function::User>("user"));
 
29
  context.add(new plugin::Create_function<utility_functions::Catalog>("catalog"));
 
30
  context.add(new plugin::Create_function<utility_functions::Schema>("database"));
 
31
  context.add(new plugin::Create_function<utility_functions::User>("user"));
32
32
 
33
33
  return 0;
34
34
}