Fossil SCM

Increase the size of the buffer used to show stats for --sqltrace, so that all text is shown even if the numbers are large.

drh 2021-01-08 14:21 trunk
Commit bf9d65b66f1de736fb6a61009a0541d465d9cb7eeaa9d9ad577826aff791eb12
1 file changed +1 -1
+1 -1
--- src/db.c
+++ src/db.c
@@ -2767,11 +2767,11 @@
27672767
int db_sql_trace(unsigned m, void *notUsed, void *pP, void *pX){
27682768
sqlite3_stmt *pStmt = (sqlite3_stmt*)pP;
27692769
char *zSql;
27702770
int n;
27712771
const char *zArg = (const char*)pX;
2772
- char zEnd[40];
2772
+ char zEnd[100];
27732773
if( m & SQLITE_TRACE_CLOSE ){
27742774
/* If we are tracking closes, that means we want to clean up static
27752775
** prepared statements. */
27762776
while( db.pAllStmt ){
27772777
db_finalize(db.pAllStmt);
27782778
--- src/db.c
+++ src/db.c
@@ -2767,11 +2767,11 @@
2767 int db_sql_trace(unsigned m, void *notUsed, void *pP, void *pX){
2768 sqlite3_stmt *pStmt = (sqlite3_stmt*)pP;
2769 char *zSql;
2770 int n;
2771 const char *zArg = (const char*)pX;
2772 char zEnd[40];
2773 if( m & SQLITE_TRACE_CLOSE ){
2774 /* If we are tracking closes, that means we want to clean up static
2775 ** prepared statements. */
2776 while( db.pAllStmt ){
2777 db_finalize(db.pAllStmt);
2778
--- src/db.c
+++ src/db.c
@@ -2767,11 +2767,11 @@
2767 int db_sql_trace(unsigned m, void *notUsed, void *pP, void *pX){
2768 sqlite3_stmt *pStmt = (sqlite3_stmt*)pP;
2769 char *zSql;
2770 int n;
2771 const char *zArg = (const char*)pX;
2772 char zEnd[100];
2773 if( m & SQLITE_TRACE_CLOSE ){
2774 /* If we are tracking closes, that means we want to clean up static
2775 ** prepared statements. */
2776 while( db.pAllStmt ){
2777 db_finalize(db.pAllStmt);
2778

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button