Update the showdb.c utility so that it works with databases larger than 4GiB. (CVS 6656)

FossilOrigin-Name: 9675b6223645fe01b202cbefae63f3209a50efcc
This commit is contained in:
drh 2009-05-19 03:21:52 +00:00
parent 8d76ff9fe9
commit e255086bb2
3 changed files with 9 additions and 9 deletions

View File

@ -1,5 +1,5 @@
C Fix\smemdb.test\sso\sthat\sit\sworks\swhen\sOMIT_AUTOVACUUM\sis\sdefined.\s(CVS\s6649)
D 2009-05-18T16:04:38
C Update\sthe\sshowdb.c\sutility\sso\sthat\sit\sworks\swith\sdatabases\slarger\sthan\s4GiB.\s(CVS\s6656)
D 2009-05-19T03:21:53
F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
F Makefile.in 583e87706abc3026960ed759aff6371faf84c211
F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@ -719,7 +719,7 @@ F tool/mksqlite3c.tcl 671833bd775e76ebd922b9e82c2508a344562511
F tool/mksqlite3internalh.tcl 7b43894e21bcb1bb39e11547ce7e38a063357e87
F tool/omittest.tcl 27d6f6e3b1e95aeb26a1c140e6eb57771c6d794a
F tool/opcodeDoc.awk b3a2a3d5d3075b8bd90b7afe24283efdd586659c
F tool/showdb.c a086a3d788c7a23cb008317c3180ceb19f20bce0
F tool/showdb.c 8ab8b3b53884312aafb7ef60982e255a6c31d238
F tool/showjournal.c ec3b171be148656827c4949fbfb8ab4370822f87
F tool/soak1.tcl 8d407956e1a45b485a8e072470a3e629a27037fe
F tool/space_used.tcl f714c41a59e326b8b9042f415b628b561bafa06b
@ -729,7 +729,7 @@ F tool/speedtest16.c c8a9c793df96db7e4933f0852abb7a03d48f2e81
F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
P e225f365bd9353f753161887e05fe1eccaf9be1d
R c1d4b25855a527f4367ea56dd49e9021
U danielk1977
Z ceec3f5da743681d72936856d6abbe9f
P 8c3c0c24c82606df41653dbf7324bf9f166c933a
R 8159ad1a37cd6a189fa091b0bc1b72f2
U drh
Z 03796d8e260a6be756464208bda70f77

View File

@ -1 +1 @@
8c3c0c24c82606df41653dbf7324bf9f166c933a
9675b6223645fe01b202cbefae63f3209a50efcc

View File

@ -25,7 +25,7 @@ static print_page(int iPg){
int i, j;
aData = malloc(pagesize);
if( aData==0 ) out_of_memory();
lseek(db, (iPg-1)*pagesize, SEEK_SET);
lseek(db, (iPg-1)*(long long int)pagesize, SEEK_SET);
read(db, aData, pagesize);
fprintf(stdout, "Page %d:\n", iPg);
for(i=0; i<pagesize; i += perLine){