~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/table_function.cc

  • Committer: Brian Aker
  • Date: 2011-02-12 06:13:32 UTC
  • mto: This revision was merged to the branch mainline in revision 2161.
  • Revision ID: brian@tangent.org-20110212061332-a5dtetim82r6vvls
Merge in session up and out of sql_select.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include <config.h>
 
20
#include "config.h"
21
21
 
22
22
#include <drizzled/current_session.h>
23
23
#include <drizzled/gettext.h>
40
40
  proto.set_type(drizzled::message::Table::FUNCTION);
41
41
  proto.set_creation_timestamp(0);
42
42
  proto.set_update_timestamp(0);
43
 
 
44
 
  proto.mutable_options()->set_dont_replicate(true);
45
43
}
46
44
 
47
45
bool plugin::TableFunction::addPlugin(plugin::TableFunction *tool)
224
222
 
225
223
bool plugin::TableFunction::Generator::isWild(const std::string &predicate)
226
224
{
227
 
  if (not getSession().getLex()->wild)
 
225
  if (not getSession().lex->wild)
228
226
    return false;
229
227
 
230
228
  bool match= wild_case_compare(system_charset_info,
231
229
                                predicate.c_str(),
232
 
                                getSession().getLex()->wild->ptr());
 
230
                                getSession().lex->wild->ptr());
233
231
 
234
232
  return match;
235
233
}