~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/create.cc

  • Committer: Brian Aker
  • Date: 2011-01-06 05:17:09 UTC
  • Revision ID: brian@tangent.org-20110106051709-oa0se8ur02uc6i9o
Added native functions into the function table.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2047
2047
  {
2048
2048
    func_name.assign(func->name.str, func->name.length);
2049
2049
 
2050
 
    FunctionContainer::getMap()[func_name]= func;
 
2050
    FunctionContainer::getMap()[func_name]= func->builder;
2051
2051
  }
2052
2052
 
2053
2053
  return 0;
2057
2057
Create_func *
2058
2058
find_native_function_builder(LEX_STRING name)
2059
2059
{
2060
 
  Native_func_registry *func;
2061
2060
  Create_func *builder= NULL;
2062
2061
 
2063
2062
  string func_name(name.str, name.length);
2064
2063
 
2065
 
  NativeFunctionsMap::iterator func_iter=
 
2064
  FunctionContainer::Map::iterator func_iter=
2066
2065
    FunctionContainer::getMap().find(func_name);
2067
2066
 
2068
2067
  if (func_iter != FunctionContainer::getMap().end())
2069
2068
  {
2070
 
    func= (*func_iter).second;
2071
 
    builder= func->builder;
 
2069
    builder= (*func_iter).second;
2072
2070
  }
2073
2071
 
2074
2072
  return builder;