~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function_container.h

  • Committer: lbieber
  • Date: 2010-10-07 21:44:19 UTC
  • mfrom: (1812.4.2 staging)
  • mto: This revision was merged to the branch mainline in revision 1822.
  • Revision ID: lbieber@orisndriz08-20101007214419-0w3k9dlvlnt57tah
Merge Brian - fixu bug #655558: SELECT 102/(1-1) should error on divide by zero          

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2010 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2010 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
23
23
 
24
24
#include <set>
25
25
#include <boost/unordered_map.hpp>
26
 
#include <drizzled/util/string.h>
 
26
#include "drizzled/util/string.h"
27
27
 
28
28
namespace drizzled {
29
29
 
30
 
class Create_func;
 
30
struct Native_func_registry;
 
31
typedef boost::unordered_map<std::string, Native_func_registry *, util::insensitive_hash, util::insensitive_equal_to> NativeFunctionsMap;
31
32
 
32
33
class FunctionContainer {
33
34
public:
34
 
  typedef boost::unordered_map<std::string, Create_func *, util::insensitive_hash, util::insensitive_equal_to> Map;
35
 
 
36
 
  static Map &getMap();
 
35
  static NativeFunctionsMap &getMap();
37
36
};
38
37
 
39
38
} /* namepsace drizzled */