~stewart/drizzle/embedded-innodb-rnd-read

« back to all changes in this revision

Viewing changes to drizzled/plugin/table_function.cc

  • Committer: Stewart Smith
  • Date: 2010-04-06 07:37:28 UTC
  • mfrom: (1310.1.44)
  • Revision ID: stewart@flamingspork.com-20100406073728-ml0gfkm3n3yq3lj3
Merged embedded-innodb-write-row into embedded-innodb-rnd-read.

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
}
145
145
 
146
146
plugin::TableFunction::Generator::Generator(Field **arg) :
147
 
  columns(arg)
 
147
  columns(arg),
 
148
  session(current_session)
148
149
{
149
150
  scs= system_charset_info;
150
151
}
220
221
 
221
222
bool plugin::TableFunction::Generator::isWild(const std::string &predicate)
222
223
{
223
 
  Session *session= current_session;
224
 
 
225
 
  if (not session->lex->wild)
 
224
  if (not getSession().lex->wild)
226
225
    return false;
227
226
 
228
227
  bool match= wild_case_compare(system_charset_info,
229
228
                                predicate.c_str(),
230
 
                                session->lex->wild->ptr());
 
229
                                getSession().lex->wild->ptr());
231
230
 
232
231
  return match;
233
232
}