~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/module/context.cc

  • Committer: Monty Taylor
  • Date: 2010-10-15 18:57:13 UTC
  • mto: (1859.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1860.
  • Revision ID: mordred@inaugust.com-20101015185713-fl4lxn3iy5fipn42
It works - has a valgrind issue somewhere.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include "drizzled/module/option_map.h"
23
23
#include "drizzled/module/module.h"
24
24
#include "drizzled/drizzled.h"
 
25
#include "drizzled/set_var.h"
25
26
 
26
27
namespace drizzled
27
28
{
37
38
void Context::registerVariable(sys_var *var)
38
39
{
39
40
  var->setName(prepend_name(module->getName(), var->getName()));
 
41
  module->addSysVar(var);
40
42
  add_sys_var_to_list(var);
41
43
}
42
44