~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/alter_table.cc

  • Committer: David Shrewsbury
  • Date: 2011-01-20 14:08:19 UTC
  • mto: (2109.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2110.
  • Revision ID: shrewsbury.dave@gmail.com-20110120140819-ctwi0etrhsaaumud
Initial change to use references to Session in TransactionServices methods rather than pointers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
726
726
      break;
727
727
 
728
728
    /* The ALTER Table is always in its own transaction */
729
 
    error= transaction_services.autocommitOrRollback(session, false);
 
729
    error= transaction_services.autocommitOrRollback(*session, false);
730
730
    if (not session->endActiveTransaction())
731
731
      error= 1;
732
732
 
737
737
 
738
738
  } while(0);
739
739
 
740
 
  (void) transaction_services.autocommitOrRollback(session, error);
 
740
  (void) transaction_services.autocommitOrRollback(*session, error);
741
741
  session->tablespace_op=false;
742
742
 
743
743
  if (error == 0)
1628
1628
      Ensure that the new table is saved properly to disk so that we
1629
1629
      can do a rename
1630
1630
    */
1631
 
    if (transaction_services.autocommitOrRollback(session, false))
 
1631
    if (transaction_services.autocommitOrRollback(*session, false))
1632
1632
      error= 1;
1633
1633
 
1634
1634
    if (not session->endActiveTransaction())