~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/table_function.cc

  • Committer: Lee Bieber
  • Date: 2011-03-13 16:37:38 UTC
  • mfrom: (2227.4.18 session2)
  • Revision ID: kalebral@gmail.com-20110313163738-7ti21zk40o2xi3ew
Merge Olaf - Refactor Session

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
bool plugin::TableFunction::addPlugin(plugin::TableFunction *tool)
47
47
{
48
48
  assert(tool != NULL);
49
 
  table_functions.addFunction(tool); 
 
49
  table_functions.addFunction(tool);
50
50
  return false;
51
51
}
52
52
 
61
61
  table_functions.getNames(arg, set_of_names);
62
62
}
63
63
 
 
64
LEX& plugin::TableFunction::Generator::lex()
 
65
{
 
66
        return getSession().lex();
 
67
}
 
68
 
 
69
statement::Statement& plugin::TableFunction::Generator::statement()
 
70
{
 
71
        return *lex().statement;
 
72
}
 
73
 
64
74
plugin::TableFunction::Generator *plugin::TableFunction::generator(Field **arg)
65
75
{
66
76
  return new Generator(arg);
96
106
  field_options->set_default_null(is_default_null);
97
107
  field_constraints->set_is_notnull(not is_default_null);
98
108
 
99
 
  switch (type) 
 
109
  switch (type)
100
110
  {
101
111
  case TableFunction::STRING:
102
112
    {
223
233
 
224
234
bool plugin::TableFunction::Generator::isWild(const std::string &predicate)
225
235
{
226
 
  if (not getSession().getLex()->wild)
 
236
  if (not lex().wild)
227
237
    return false;
228
238
 
229
239
  bool match= wild_case_compare(system_charset_info,
230
240
                                predicate.c_str(),
231
 
                                getSession().getLex()->wild->ptr());
 
241
                                lex().wild->ptr());
232
242
 
233
243
  return match;
234
244
}