~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/savepoint.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-23 10:47:03 UTC
  • mto: This revision was merged to the branch mainline in revision 2348.
  • Revision ID: olafvdspek@gmail.com-20110623104703-hw93svu0vfgcqt9p
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
     * Look through the savepoints.  If we find one with
62
62
     * the same name, delete it.
63
63
     */
64
 
    TransactionServices &transaction_services= TransactionServices::singleton();
65
64
    deque<NamedSavepoint> &savepoints= transaction().savepoints;
66
65
    deque<NamedSavepoint>::iterator iter;
67
66
 
81
80
    if (iter != savepoints.end())
82
81
    {
83
82
      NamedSavepoint &sv= *iter;
84
 
      (void) transaction_services.releaseSavepoint(session(), sv);
 
83
      (void) TransactionServices::releaseSavepoint(session(), sv);
85
84
      savepoints.erase(iter);
86
85
    }
87
86
    
88
87
    NamedSavepoint newsv(lex().ident.str, lex().ident.length);
89
88
 
90
 
    if (transaction_services.setSavepoint(session(), newsv))
 
89
    if (TransactionServices::setSavepoint(session(), newsv))
91
90
    {
92
91
      return true;
93
92
    }