~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/table_function.cc

  • Committer: Brian Aker
  • Date: 2010-02-13 01:51:43 UTC
  • mto: (1273.16.5 fix_is)
  • mto: This revision was merged to the branch mainline in revision 1300.
  • Revision ID: brian@gaz-20100213015143-v5fp4ajw93w145pt
Fixes a memory leak. sql_string() sucks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
218
218
 
219
219
bool plugin::TableFunction::Generator::isWild(const std::string &predicate)
220
220
{
 
221
  Session *session= current_session;
221
222
 
222
 
  if (not (current_session)->lex->wild)
 
223
  if (not session->lex->wild)
223
224
    return false;
224
225
 
225
 
  bool match=  wild_case_compare(system_charset_info,
226
 
                                 predicate.c_str(),
227
 
                                 (current_session)->lex->wild->c_str());
 
226
  bool match= wild_case_compare(system_charset_info,
 
227
                                predicate.c_str(),
 
228
                                session->lex->wild->ptr());
228
229
 
229
230
  return match;
230
231
}