~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/start_transaction.cc

  • Committer: Brian Aker
  • Date: 2011-01-22 18:52:16 UTC
  • mfrom: (2098.4.1 catalogs)
  • Revision ID: brian@tangent.org-20110122185216-18and6vncipd7x72
Session encapsulation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
bool statement::StartTransaction::execute()
30
30
{
31
 
  if (session->transaction.xid_state.xa_state != XA_NOTR)
 
31
  if (getSession()->transaction.xid_state.xa_state != XA_NOTR)
32
32
  {
33
33
    my_error(ER_XAER_RMFAIL, MYF(0),
34
 
        xa_state_names[session->transaction.xid_state.xa_state]);
 
34
        xa_state_names[getSession()->transaction.xid_state.xa_state]);
35
35
    return false;
36
36
  }
37
37
  /*
38
38
     Breakpoints for backup testing.
39
39
   */
40
 
  if (! session->startTransaction(start_transaction_opt))
 
40
  if (! getSession()->startTransaction(start_transaction_opt))
41
41
  {
42
42
    return true;
43
43
  }
44
 
  session->my_ok();
 
44
  getSession()->my_ok();
45
45
  return false;
46
46
}
47
47