~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/start_transaction.cc

  • Committer: Lee Bieber
  • Date: 2011-03-13 16:37:38 UTC
  • mfrom: (2227.4.18 session2)
  • Revision ID: kalebral@gmail.com-20110313163738-7ti21zk40o2xi3ew
Merge Olaf - Refactor Session

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
bool statement::StartTransaction::execute()
30
30
{
31
 
  if (getSession()->inTransaction())
 
31
  if (session().inTransaction())
32
32
  {
33
 
    push_warning_printf(getSession(), DRIZZLE_ERROR::WARN_LEVEL_WARN,
 
33
    push_warning_printf(&session(), DRIZZLE_ERROR::WARN_LEVEL_WARN,
34
34
                        ER_TRANSACTION_ALREADY_STARTED,
35
35
                        ER(ER_TRANSACTION_ALREADY_STARTED));
36
36
    return false;
45
45
  /*
46
46
     Breakpoints for backup testing.
47
47
   */
48
 
  if (! getSession()->startTransaction(start_transaction_opt))
 
48
  if (! session().startTransaction(start_transaction_opt))
49
49
  {
50
50
    return true;
51
51
  }
52
 
  getSession()->my_ok();
 
52
  session().my_ok();
53
53
  return false;
54
54
}
55
55