Check-in [5f3a0681a0]
Not logged in

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

Overview
SHA1 Hash:5f3a0681a0e403ab66776378a1cf87f3237b1765
Date: 2012-06-29 23:45:22
User: drh
Comment:Fix a bug in the manifest generator that was introduced by check-in [01e4de6b8ae936b].
Tags And Properties
Changes

Changes to src/db.c

1376 ** 1376 ** 1377 ** In the first form (1 argument) return TRUE if either no files are 1377 ** In the first form (1 argument) return TRUE if either no files are 1378 ** named on the command line (g.aCommitFile is NULL meaning that all 1378 ** named on the command line (g.aCommitFile is NULL meaning that all 1379 ** changes are to be committed) or if id is found in g.aCommitFile[] 1379 ** changes are to be committed) or if id is found in g.aCommitFile[] 1380 ** (meaning that id was named on the command-line). 1380 ** (meaning that id was named on the command-line). 1381 ** 1381 ** 1382 ** In the second form (3 arguments) return argument X if true and Y 1382 ** In the second form (3 arguments) return argument X if true and Y 1383 ** if false. | 1383 ** if false. Except if Y is NULL then always return X. 1384 */ 1384 */ 1385 static void file_is_selected( 1385 static void file_is_selected( 1386 sqlite3_context *context, 1386 sqlite3_context *context, 1387 int argc, 1387 int argc, 1388 sqlite3_value **argv 1388 sqlite3_value **argv 1389 ){ 1389 ){ 1390 int rc = 0; 1390 int rc = 0; ................................................................................................................................................................................ 1403 rc = 1; 1403 rc = 1; 1404 } 1404 } 1405 if( argc==1 ){ 1405 if( argc==1 ){ 1406 sqlite3_result_int(context, rc); 1406 sqlite3_result_int(context, rc); 1407 }else{ 1407 }else{ 1408 assert( argc==3 ); 1408 assert( argc==3 ); 1409 assert( rc==0 || rc==1 ); 1409 assert( rc==0 || rc==1 ); > 1410 if( sqlite3_value_type(argv[2-rc])==SQLITE_NULL ) rc = 1-rc; 1410 sqlite3_result_value(context, argv[2-rc]); 1411 sqlite3_result_value(context, argv[2-rc]); 1411 } 1412 } 1412 } 1413 } 1413 1414 1414 /* 1415 /* 1415 ** Convert the input string into an SHA1. Make a notation in the 1416 ** Convert the input string into an SHA1. Make a notation in the 1416 ** CONCEALED table so that the hash can be undo using the db_reveal() 1417 ** CONCEALED table so that the hash can be undo using the db_reveal()