]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Fix a sign-extension problem for BLOB output in ".insert" mode of the
authordrh <drh@noemail.net>
Tue, 24 Apr 2012 12:12:57 +0000 (12:12 +0000)
committerdrh <drh@noemail.net>
Tue, 24 Apr 2012 12:12:57 +0000 (12:12 +0000)
command-line shell.

FossilOrigin-Name: 282f2a74c23aa3fca6087bdeaf5d961b4f5bbe47

manifest
manifest.uuid
src/shell.c

index 9c161337e40cd2c24b8099d76dacf30bd3687278..fa3712737ad1caa0b3b7d6f019c5c90d992e8424 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Update\sthe\s".table"\scommand\sin\sthe\sshell\sto\sshow\sall\stables\sin\sall\nattached\sdatabases,\sand\sto\savoid\susing\sthe\sdeprecated\ssqlite3_get_table()\nfunction.
-D 2012-04-23T12:38:05.598
+C Fix\sa\ssign-extension\sproblem\sfor\sBLOB\soutput\sin\s".insert"\smode\sof\sthe\ncommand-line\sshell.
+D 2012-04-24T12:12:57.348
 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
 F Makefile.in 2f37e468503dbe79d35c9f6dffcf3fae1ae9ec20
 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@@ -174,7 +174,7 @@ F src/random.c cd4a67b3953b88019f8cd4ccd81394a8ddfaba50
 F src/resolve.c 969ec2bc52db1b068054ecf5ddc74f244102a71d
 F src/rowset.c f6a49f3e9579428024662f6e2931832511f831a1
 F src/select.c d7b9018b7dd2e821183d69477ab55c39b8272335
-F src/shell.c 151a17fe8464e40097c13672b6f756a38988147a
+F src/shell.c 04399b2f9942bd02ed5ffee3b84bcdb39c52a1e6
 F src/sqlite.h.in 4338f299fc83dada8407358d585c0e240ecb76a3
 F src/sqlite3ext.h 6904f4aadf976f95241311fbffb00823075d9477
 F src/sqliteInt.h c5e917c4f1453f3972b1fd0c81105dfe4f09cc32
@@ -995,7 +995,7 @@ F tool/tostr.awk e75472c2f98dd76e06b8c9c1367f4ab07e122d06
 F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f
 F tool/warnings-clang.sh a8a0a3babda96dfb1ff51adda3cbbf3dfb7266c2
 F tool/warnings.sh fbc018d67fd7395f440c28f33ef0f94420226381
-P feff1ef0b8f7b51ae80a9d34380b46a5103bf6cd
-R 684c337b6696cf99874c83d471c520fc
+P ce2d06e2533763a8008e7a405630293d8f9a3108
+R 3cb8ce97e629e462f046b05d1b3f651d
 U drh
-Z 459397b23e497549b544849ef1acdc2b
+Z 1d5f5dcc20d86aab9e41b01973a0dba1
index 27adcb8c753d3bbd845578ef193fea97d24dd741..3baf8a3fc64e4c3f173a0e65781f535e4e426d4d 100644 (file)
@@ -1 +1 @@
-ce2d06e2533763a8008e7a405630293d8f9a3108
\ No newline at end of file
+282f2a74c23aa3fca6087bdeaf5d961b4f5bbe47
\ No newline at end of file
index 34b72c4d624df3827f1b7102f70ec44a2864d6dd..73341fc3ccc77bd08e447503d511438458b0879f 100644 (file)
@@ -499,7 +499,7 @@ static void output_hex_blob(FILE *out, const void *pBlob, int nBlob){
   int i;
   char *zBlob = (char *)pBlob;
   fprintf(out,"X'");
-  for(i=0; i<nBlob; i++){ fprintf(out,"%02x",zBlob[i]); }
+  for(i=0; i<nBlob; i++){ fprintf(out,"%02x",zBlob[i]&0xff); }
   fprintf(out,"'");
 }