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.
Commit
bf9d65b66f1de736fb6a61009a0541d465d9cb7eeaa9d9ad577826aff791eb12
Parent
2dbbe1d62204da2…
1 file changed
+1
-1
M
src/db.c
+1
-1
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -2767,11 +2767,11 @@ | ||
| 2767 | 2767 | int db_sql_trace(unsigned m, void *notUsed, void *pP, void *pX){ |
| 2768 | 2768 | sqlite3_stmt *pStmt = (sqlite3_stmt*)pP; |
| 2769 | 2769 | char *zSql; |
| 2770 | 2770 | int n; |
| 2771 | 2771 | const char *zArg = (const char*)pX; |
| 2772 | - char zEnd[40]; | |
| 2772 | + char zEnd[100]; | |
| 2773 | 2773 | if( m & SQLITE_TRACE_CLOSE ){ |
| 2774 | 2774 | /* If we are tracking closes, that means we want to clean up static |
| 2775 | 2775 | ** prepared statements. */ |
| 2776 | 2776 | while( db.pAllStmt ){ |
| 2777 | 2777 | db_finalize(db.pAllStmt); |
| 2778 | 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[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 |