OLD | NEW |
1 /* | 1 /* |
2 ** 2014-07-28 | 2 ** 2014-07-28 |
3 ** | 3 ** |
4 ** The author disclaims copyright to this source code. In place of | 4 ** The author disclaims copyright to this source code. In place of |
5 ** a legal notice, here is a blessing: | 5 ** a legal notice, here is a blessing: |
6 ** | 6 ** |
7 ** May you do good and not evil. | 7 ** May you do good and not evil. |
8 ** May you find forgiveness for yourself and forgive others. | 8 ** May you find forgiveness for yourself and forgive others. |
9 ** May you share freely, never taking more than you give. | 9 ** May you share freely, never taking more than you give. |
10 ** | 10 ** |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 if( sCtx.nRowPerTrans>0 ) sqlite3_exec(db, "BEGIN", 0, 0, 0); | 233 if( sCtx.nRowPerTrans>0 ) sqlite3_exec(db, "BEGIN", 0, 0, 0); |
234 traverse(zDir, (void*)&sCtx, visit_file); | 234 traverse(zDir, (void*)&sCtx, visit_file); |
235 if( sCtx.nRowPerTrans>0 ) sqlite3_exec(db, "COMMIT", 0, 0, 0); | 235 if( sCtx.nRowPerTrans>0 ) sqlite3_exec(db, "COMMIT", 0, 0, 0); |
236 | 236 |
237 /* Clean up and exit. */ | 237 /* Clean up and exit. */ |
238 sqlite3_finalize(sCtx.pInsert); | 238 sqlite3_finalize(sCtx.pInsert); |
239 sqlite3_close(db); | 239 sqlite3_close(db); |
240 sqlite3_free(aCmd); | 240 sqlite3_free(aCmd); |
241 return 0; | 241 return 0; |
242 } | 242 } |
OLD | NEW |