summaryrefslogtreecommitdiffstats
path: root/lib/libsqlite3/tool/showstat4.c
diff options
context:
space:
mode:
authorjturner <jturner@openbsd.org>2015-04-04 23:24:43 +0000
committerjturner <jturner@openbsd.org>2015-04-04 23:24:43 +0000
commit4cd20ac631b4b7b4b044a0402b379984aae8c8fa (patch)
tree67f2e52b4aeaa573e6ee5b3b4172c119abef2a05 /lib/libsqlite3/tool/showstat4.c
parentThe swapfile argument is also const char *. (diff)
downloadwireguard-openbsd-4cd20ac631b4b7b4b044a0402b379984aae8c8fa.tar.xz
wireguard-openbsd-4cd20ac631b4b7b4b044a0402b379984aae8c8fa.zip
Update sqlite3 to 3.8.8.3. Changes available here:
http://sqlite.org/releaselog/3_8_8_3.html Tested in bulk and ok landry@
Diffstat (limited to 'lib/libsqlite3/tool/showstat4.c')
-rw-r--r--lib/libsqlite3/tool/showstat4.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libsqlite3/tool/showstat4.c b/lib/libsqlite3/tool/showstat4.c
index 668d2106af2..215962919ed 100644
--- a/lib/libsqlite3/tool/showstat4.c
+++ b/lib/libsqlite3/tool/showstat4.c
@@ -39,6 +39,7 @@ int main(int argc, char **argv){
int nSample;
i64 iVal;
const char *zSep;
+ int iRow = 0;
if( argc!=2 ){
fprintf(stderr, "Usage: %s DATABASE-FILE\n", argv[0]);
@@ -60,13 +61,13 @@ int main(int argc, char **argv){
}
while( SQLITE_ROW==sqlite3_step(pStmt) ){
if( zIdx==0 || strcmp(zIdx, (const char*)sqlite3_column_text(pStmt,0))!=0 ){
- if( zIdx ) printf("\n");
+ if( zIdx ) printf("\n**************************************"
+ "**************\n\n");
sqlite3_free(zIdx);
zIdx = sqlite3_mprintf("%s", sqlite3_column_text(pStmt,0));
- printf("%s:\n", zIdx);
- }else{
- printf(" -----------------------------------------------------------\n");
+ iRow = 0;
}
+ printf("%s sample %d ------------------------------------\n", zIdx, ++iRow);
printf(" nEq = %s\n", sqlite3_column_text(pStmt,1));
printf(" nLt = %s\n", sqlite3_column_text(pStmt,2));
printf(" nDLt = %s\n", sqlite3_column_text(pStmt,3));