Fossil

Changes On Branch optSql
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Changes In Branch optSql Excluding Merge-Ins

This is equivalent to a diff from 1a2aa2b37e to 24d7ebe12a

2015-02-24
00:36
Execute 'optional' SQL statements in their original order. check-in: 9491f1dd54 user: mistachkin tags: trunk
2015-02-23
23:40
Execute 'optional' SQL statements in their original order. Closed-Leaf check-in: 24d7ebe12a user: mistachkin tags: optSql
23:27
Make sure the 'cTag' structure field is initialized to zero. check-in: 1a2aa2b37e user: mistachkin tags: trunk
18:52
New entry on the "quotes.wiki" page. check-in: a56f58299c user: drh tags: trunk

Changes to src/db.c.
157
158
159
160
161
162
163

164
165
166
167



168
169
170
171
172
173
174
157
158
159
160
161
162
163
164
165
166


167
168
169
170
171
172
173
174
175
176







+


-
-
+
+
+







  if( g.db==0 ) return;
  if( db.nBegin<=0 ) return;
  if( rollbackFlag ) db.doRollback = 1;
  db.nBegin--;
  if( db.nBegin==0 ){
    int i;
    if( db.doRollback==0 && db.nPriorChanges<sqlite3_total_changes(g.db) ){
      i = 0;
      while( db.nBeforeCommit ){
        db.nBeforeCommit--;
        sqlite3_exec(g.db, db.azBeforeCommit[db.nBeforeCommit], 0, 0, 0);
        sqlite3_free(db.azBeforeCommit[db.nBeforeCommit]);
        sqlite3_exec(g.db, db.azBeforeCommit[i], 0, 0, 0);
        sqlite3_free(db.azBeforeCommit[i]);
        i++;
      }
      leaf_do_pending_checks();
    }
    for(i=0; db.doRollback==0 && i<db.nCommitHook; i++){
      db.doRollback |= db.aHook[i].xHook();
    }
    while( db.pAllStmt ){