~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/function.cc

  • Committer: Monty Taylor
  • Date: 2010-08-12 16:38:48 UTC
  • mto: (1711.1.11 build)
  • mto: This revision was merged to the branch mainline in revision 1713.
  • Revision ID: mordred@inaugust.com-20100812163848-s7o3uu537e9bnuqo
Fix timegm issue on solaris.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
#include "drizzled/util/string.h"
30
30
 
 
31
using namespace std;
 
32
 
31
33
namespace drizzled
32
34
{
33
35
 
34
 
static plugin::Function::UdfMap udf_registry;
35
 
 
36
 
const plugin::Function::UdfMap &plugin::Function::getMap()
37
 
{
38
 
  return udf_registry;
39
 
}
 
36
typedef boost::unordered_map<string, const plugin::Function *, util::insensitive_hash, util::insensitive_equal_to> UdfMap;
 
37
static UdfMap udf_registry;
40
38
 
41
39
bool plugin::Function::addPlugin(const plugin::Function *udf)
42
40
{
47
45
                  udf->getName().c_str());
48
46
    return true;
49
47
  }
50
 
  std::pair<UdfMap::iterator, bool> ret=
 
48
  pair<UdfMap::iterator, bool> ret=
51
49
    udf_registry.insert(make_pair(udf->getName(), udf));
52
50
  if (ret.second == false)
53
51
  {