~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to drizzled/table_function_container.cc

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include "drizzled/plugin/table_function.h"
23
23
#include "drizzled/table_function_container.h"
24
24
 
 
25
#include <iostream>
 
26
 
25
27
using namespace std;
26
28
 
27
29
namespace drizzled
39
41
}
40
42
 
41
43
void TableFunctionContainer::getNames(const string &predicate,
42
 
                                      std::set<std::string> &set_of_names)
 
44
                                      std::set<std::string> &set_of_names)
43
45
{
44
46
  for (ToolMap::iterator it= table_map.begin();
45
47
       it != table_map.end();
49
51
 
50
52
    if (predicate.length())
51
53
    {
52
 
      if (not predicate.compare(tool->getSchemaHome()))
 
54
      if (boost::iequals(predicate, tool->getSchemaHome()))
53
55
      {
54
 
        set_of_names.insert(tool->getName());
 
56
        set_of_names.insert(tool->getTableLabel());
55
57
      }
56
58
    }
57
59
    else
58
60
    {
59
 
      set_of_names.insert(tool->getName());
 
61
      set_of_names.insert(tool->getTableLabel());
60
62
    }
61
63
  }
62
64
}