aboutsummaryrefslogtreecommitdiff
path: root/src/printf.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2010-03-04 00:53:32 +0000
committerdrh <drh@noemail.net>2010-03-04 00:53:32 +0000
commita64fa9123ee97975c66f78ebe77e5c99c039ef36 (patch)
tree50810d30d0965450821f5f64703e7110d895bb6c /src/printf.c
parentccd0489baada31392da6539855093b75540176bf (diff)
downloadsqlite-a64fa9123ee97975c66f78ebe77e5c99c039ef36.tar.gz
sqlite-a64fa9123ee97975c66f78ebe77e5c99c039ef36.zip
Increase the maximum length of an sqlite3_log() result string. Provide more
details on the statement abort log message. FossilOrigin-Name: 5322d1df5ba981001d248b7fb2ee02281e4f9723
Diffstat (limited to 'src/printf.c')
-rw-r--r--src/printf.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/printf.c b/src/printf.c
index a0bae3873..ab2cfcc64 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -606,9 +606,7 @@ void sqlite3VXPrintf(
while( nPad-- ) bufpt[i++] = '0';
length = width;
}
-#else
- length = 0;
-#endif /* SQLITE_OMIT_FLOATING_POINT */
+#endif
break;
case etSIZE:
*(va_arg(ap,int*)) = pAccum->nChar;
@@ -949,12 +947,8 @@ char *sqlite3_snprintf(int n, char *zBuf, const char *zFormat, ...){
** mutex is held.
*/
static void renderLogMsg(int iErrCode, const char *zFormat, va_list ap){
- StrAccum acc; /* String accumulator */
-#ifdef SQLITE_SMALL_STACK
- char zMsg[150]; /* Complete log message */
-#else
- char zMsg[400]; /* Complete log message */
-#endif
+ StrAccum acc; /* String accumulator */
+ char zMsg[SQLITE_PRINT_BUF_SIZE*3]; /* Complete log message */
sqlite3StrAccumInit(&acc, zMsg, sizeof(zMsg), 0);
acc.useMalloc = 0;