~posulliv/drizzle/optimizer-style-cleanup

« back to all changes in this revision

Viewing changes to drizzled/table_function_container.cc

  • Committer: Padraig O'Sullivan
  • Date: 2010-04-17 01:38:47 UTC
  • mfrom: (1237.9.238 bad-staging)
  • Revision ID: osullivan.padraig@gmail.com-20100417013847-ibjioqsfbmf5yg4g
Merge trunk.

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();
51
53
    {
52
54
      if (not predicate.compare(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
}