~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/rollback.cc

  • Committer: Olaf van der Spek
  • Date: 2011-03-10 10:33:18 UTC
  • mto: This revision was merged to the branch mainline in revision 2233.
  • Revision ID: olafvdspek@gmail.com-20110310103318-wbqr82jzk8dnd86h
Statement::session()

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
bool Rollback::execute()
41
41
{
42
 
  if (not getSession()->endTransaction(tx_release ? ROLLBACK_RELEASE : tx_chain ? ROLLBACK_AND_CHAIN : ROLLBACK))
 
42
  if (not session().endTransaction(tx_release ? ROLLBACK_RELEASE : tx_chain ? ROLLBACK_AND_CHAIN : ROLLBACK))
43
43
  {
44
44
    return true;
45
45
  }
46
 
  getSession()->my_ok();
 
46
  session().my_ok();
47
47
 
48
48
  return false;
49
49
}