~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_function_container.h

  • Committer: Stewart Smith
  • Date: 2010-02-15 01:56:32 UTC
  • mto: (1273.13.96 build)
  • mto: This revision was merged to the branch mainline in revision 1308.
  • Revision ID: stewart@flamingspork.com-20100215015632-pm7lnxfq5j5uh8kj
move DATABASE() to function plugin. modify parser so that it looks for a function named 'database' when DATABASE() is called. Special case still needed in parser due to hilarity of not-really-reserved words.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLED_TABLE_FUNCTION_CONTAINER_H
22
22
#define DRIZZLED_TABLE_FUNCTION_CONTAINER_H
23
23
 
 
24
#include "drizzled/hash.h"
24
25
#include <set>
25
 
#include <boost/unordered_map.hpp>
26
 
#include "drizzled/util/string.h"
27
26
 
28
27
namespace drizzled {
29
28
 
30
29
class TableFunctionContainer {
31
 
  typedef boost::unordered_map<std::string, plugin::TableFunction *, util::insensitive_hash, util::insensitive_equal_to> ToolMap;
 
30
  typedef hash_map<std::string, plugin::TableFunction *> ToolMap;
32
31
 
33
32
  ToolMap table_map;
34
33