~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/generator/functions.h

  • Committer: Brian Aker
  • Date: 2011-01-06 05:17:09 UTC
  • Revision ID: brian@tangent.org-20110106051709-oa0se8ur02uc6i9o
Added native functions into the function table.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
class Functions
30
30
{
31
31
  Session &session;
 
32
  typedef std::vector <std::string> vector;
32
33
  std::string function_name;
33
 
  plugin::Function::UdfMap::const_iterator udf_iter;
 
34
  vector function_list;
 
35
  vector::iterator iter;
34
36
 
35
37
public:
36
38
 
38
40
 
39
41
  operator std::string*()
40
42
  {
41
 
    if (udf_iter == plugin::Function::getMap().end())
 
43
    if (iter == function_list.end())
42
44
      return NULL;
43
45
 
44
 
    function_name= (*udf_iter).first;
45
 
    udf_iter++;
 
46
    function_name= *iter;
 
47
    iter++;
46
48
 
47
49
    return &function_name;
48
50
  }