aboutsummaryrefslogtreecommitdiff
path: root/src/printf.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-05-15 04:13:15 +0000
committerdrh <drh@noemail.net>2015-05-15 04:13:15 +0000
commit22c17b8bf5c1600b488b6ce491c7bbdc0f3204d0 (patch)
tree4a9a224eca899cd0b0cbdb6478a315107164a629 /src/printf.c
parentf922ca497dd3b72db072c63beabb97fe437a1589 (diff)
downloadsqlite-22c17b8bf5c1600b488b6ce491c7bbdc0f3204d0.tar.gz
sqlite-22c17b8bf5c1600b488b6ce491c7bbdc0f3204d0.zip
Simplifications to error message processing. Fix a possible problem in error
message formatting when vacuuming a database with a corrupt schema. FossilOrigin-Name: 56ef98a04765c34c1c2f3ed7a6f03a732f3b886e
Diffstat (limited to 'src/printf.c')
-rw-r--r--src/printf.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/printf.c b/src/printf.c
index 1d50d7790..edf2210e0 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -932,24 +932,6 @@ char *sqlite3MPrintf(sqlite3 *db, const char *zFormat, ...){
}
/*
-** Like sqlite3MPrintf(), but call sqlite3DbFree() on zStr after formatting
-** the string and before returning. This routine is intended to be used
-** to modify an existing string. For example:
-**
-** x = sqlite3MPrintf(db, x, "prefix %s suffix", x);
-**
-*/
-char *sqlite3MAppendf(sqlite3 *db, char *zStr, const char *zFormat, ...){
- va_list ap;
- char *z;
- va_start(ap, zFormat);
- z = sqlite3VMPrintf(db, zFormat, ap);
- va_end(ap);
- sqlite3DbFree(db, zStr);
- return z;
-}
-
-/*
** Print into memory obtained from sqlite3_malloc(). Omit the internal
** %-conversion extensions.
*/