/sqlite3cc

To get this branch, use:
bzr branch http://bzr.ed.am/sqlite3cc

« back to all changes in this revision

Viewing changes to src/command.cc

  • Committer: edam
  • Date: 2012-04-23 18:40:10 UTC
  • Revision ID: tim@ed.am-20120423184010-3zaiqkhxwequfaey
Removed an optimisation in command::step() (calling finalize() here prevents
the command from being reset() and reused), and added a wrapper for a
transaction's begin() method to transaction_guard (both thanks to Ron Wilson).

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
        _total_changes = sqlite3_total_changes( _connection._handle );
72
72
        _last_insert_rowid = sqlite3_last_insert_rowid( _connection._handle );
73
73
 
74
 
        lock.leave();
75
 
 
76
 
        // finalise now (which shouldn't matter for commands), so that there are no
77
 
        // active statements if we come to begin, commit or rollback a transaction
78
 
        finalize();
79
 
 
80
74
        return code;
81
75
}
82
76