~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: Olaf van der Spek
  • Date: 2011-03-14 15:00:51 UTC
  • mto: (2235.2.2 build)
  • mto: This revision was merged to the branch mainline in revision 2237.
  • Revision ID: olafvdspek@gmail.com-20110314150051-g3sx2nxrcpp21n4d
Refactor includes

Show diffs side-by-side

added added

removed removed

Lines of Context:
259
259
  plugin::EventObserver::registerSessionEvents(*this);
260
260
}
261
261
 
 
262
const LEX& Session::lex() const
 
263
{
 
264
  return main_lex;
 
265
}
 
266
 
 
267
LEX& Session::lex()
 
268
{
 
269
  return main_lex;
 
270
}
 
271
 
 
272
enum_sql_command Session::getSqlCommand() const
 
273
{
 
274
  return lex().sql_command;
 
275
}
 
276
 
262
277
void statement::Statement::set_command(enum_sql_command v)
263
278
{
264
279
        session().lex().sql_command= v;