Hi Daniele,
Ulrik Petersen wrote:
Only in sqlite-3.0.8-nullimport/: config.h
Only in sqlite-3.0.8-nullimport/: config.log
Only in sqlite-3.0.8-nullimport/: config.status
Only in sqlite-3.0.8: doc
Only in sqlite-3.0.8-nullimport/: libtool
Only in sqlite-3.0.8-nullimport/: Makefile
Only in sqlite-3.0.8-nullimport/: sqlite3.pc
diff -cr sqlite-3.0.8/src/shell.c sqlite-3.0.8-nullimport/src/shell.c
*** sqlite-3.0.8/src/shell.c 2004-10-08 15:03:07.000000000 +0200
--- sqlite-3.0.8-nullimport/src/shell.c 2005-01-22 18:31:11.000000000 +0100
***************
*** 1091,1097 ****
break;
}
for(i=0; i<nCol; i++){
! sqlite3_bind_text(pStmt, i+1, azCol[i], -1, SQLITE_STATIC);
}
sqlite3_step(pStmt);
rc = sqlite3_reset(pStmt);
--- 1091,1102 ----
break;
}
for(i=0; i<nCol; i++){
! if (strcmp(azCol[i], "NULL") == 0
! || strcmp(azCol[i], "null") == 0) {
! sqlite3_bind_null(pStmt, i+1);
! } else {
! sqlite3_bind_text(pStmt, i+1, azCol[i], -1, SQLITE_STATIC);
! }
}
sqlite3_step(pStmt);
rc = sqlite3_reset(pStmt);
Only in sqlite-3.0.8-nullimport/src: shell.c~
I forgot to say this about my "contribution":
/The author [that would be me, Ulrik Petersen] or authors of this code dedicate any and all copyright interest in this code to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights this code under copyright law. /
It's best to be clear :-).
Cheers,
Ulrik P.
-- Ulrik Petersen, MA, B.Sc. University of Aalborg, Denmark

