1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

The substitute "puts" command used by the Windows implementation of

sqlite3_analyzer must invoke fflush() after each line of output.  Otherwise
the output can be truncated when redirected into a file.

FossilOrigin-Name: ba058ce90a2ba9ebc4d8fb289108c04f80fa85da01c0b8bd58855681836ba83d
This commit is contained in:
drh
2025-03-11 12:19:27 +00:00
parent 642479d1cd
commit a7829ecbdd
3 changed files with 8 additions and 7 deletions

View File

@ -61,6 +61,7 @@ static int subst_puts(
}
sqlite3_fputs(zOut, pOut);
if( addNewLine ) sqlite3_fputs("\n", pOut);
fflush(pOut);
return TCL_OK;
}
#endif /* defined(_WIN32) */