]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Enhance the showstat4 utility program to show the full precision of
authordrh <drh@noemail.net>
Sat, 15 Jul 2017 17:57:31 +0000 (17:57 +0000)
committerdrh <drh@noemail.net>
Sat, 15 Jul 2017 17:57:31 +0000 (17:57 +0000)
floating point values in sqlite_stat4 tables.

FossilOrigin-Name: 5ec37c62f65b2870dcd7a906912da787367f3912a96b6f3536355fad65903575

manifest
manifest.uuid
tool/showstat4.c

index 57ae65473328be5fc25e3e54655fd2d080762d0d..578158dde47e4c5802a2405bb7606c0656fdd91e 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Fix\sanother\sminor\sproblem\sin\stest\sfile\slike.test.
-D 2017-07-15T08:02:10.650
+C Enhance\sthe\sshowstat4\sutility\sprogram\sto\sshow\sthe\sfull\sprecision\sof\s\nfloating\spoint\svalues\sin\ssqlite_stat4\stables.
+D 2017-07-15T17:57:31.773
 F Makefile.in eda8bedf08c4c93e2137ef1218b3d3302488c68c2774918de0335a1133aab157
 F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434
 F Makefile.msc 20850e3e8d4d4791e0531955852d768eb06f24138214870d543abb1a47346fba
@@ -1589,7 +1589,7 @@ F tool/run-speed-test.sh f95d19fd669b68c4c38b6b475242841d47c66076
 F tool/showdb.c e6bc9dba233bf1b57ca0a525a2bba762db4e223de84990739db3f09c46151b1e
 F tool/showjournal.c 5bad7ae8784a43d2b270d953060423b8bd480818
 F tool/showlocks.c 9920bcc64f58378ff1118caead34147201f48c68
-F tool/showstat4.c b14159aa062f661b394ba37b6b7b94bfb8012ab9
+F tool/showstat4.c 0682ebea7abf4d3657f53c4a243f2e7eab48eab344ed36a94bb75dcd19a5c2a1
 F tool/showwal.c ad9d768f96ca6199ad3a8c9562d679680bd032dd01204ea3e5ea6fb931d81847
 F tool/soak1.tcl 8d407956e1a45b485a8e072470a3e629a27037fe
 F tool/spaceanal.tcl f40dc82b4d5e39d040a02a3ec38268e324068815e4292a15ffa30ee93208bbfd
@@ -1633,7 +1633,7 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
 F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
 F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
-P b61cc5a0f9f2c2d2175ad30fc3fa4cb2086dbb948d5a5cc538ac43b871bb5221
-R af5646727b9329571e6eea5c921583ee
-U dan
-Z 156e8c15cd77e4ab46ec58b946c16e8b
+P 0953e74612358f48a9c9e3772876b514bc79784f277497121c59302a3106110c
+R 37447c1bc225884bf4cb0bdcfa8c7e9d
+U drh
+Z 9a63822039c6f4c14cca9f049689de46
index e2a9346da19081c45709bf8df2fdd2b2523a2c32..6ffaa03f245867a36ea2a4b97cef4dcc3a712164 100644 (file)
@@ -1 +1 @@
-0953e74612358f48a9c9e3772876b514bc79784f277497121c59302a3106110c
\ No newline at end of file
+5ec37c62f65b2870dcd7a906912da787367f3912a96b6f3536355fad65903575
\ No newline at end of file
index e31150f0c0111cd446f89e89ac25decb01c0a333..b8a12ad63c65a3de9f8b61d6657f9ee83d4a4d22 100644 (file)
@@ -118,8 +118,11 @@ int main(int argc, char **argv){
         }
         if( iVal==7 ){
           double r;
+          char *z;
           memcpy(&r, &v, sizeof(r));
-          printf("%s%#g", zSep, r);
+          z = sqlite3_mprintf("%s%!.15g", zSep, r);
+          printf("%s", z);
+          sqlite3_free(z);
         }else{
           printf("%s%lld", zSep, v);
         }