revert a not-so-useful CL: 36e3a0c245c8985614630de04606907832a1c3c9
that CL isn't so useful. and it introduced a bug too: http://b/issue?id=2418478
plus, it added code to sqlite3.c. need to avoid doing that wherever possible
diff --git a/dist/sqlite3.c b/dist/sqlite3.c
index 9d18073..57235bb 100644
--- a/dist/sqlite3.c
+++ b/dist/sqlite3.c
@@ -95896,18 +95896,8 @@
/* If there are any outstanding VMs, return SQLITE_BUSY. */
if( db->pVdbe ){
- // Begin Android Change
- // print the first unfinalized statement in the error message, to help the developer
- // figure out what the unfinalized statement is.
- char *msgPrefix = "unable to close due to unfinalised statements: ";
- int len = strlen(msgPrefix) + strlen(db->pVdbe->zSql) + 1;
- char *buff =(char*)sqlite3_malloc(len);
- strncat(buff, msgPrefix, strlen(msgPrefix));
- strncat(buff, db->pVdbe->zSql, strlen(db->pVdbe->zSql));
- buff[len-1] = NULL; // null terminate the string, just in case. paranoid, eh? :)
- sqlite3Error(db, SQLITE_BUSY, buff);
- sqlite3_free(buff);
- // End Android Change
+ sqlite3Error(db, SQLITE_BUSY,
+ "unable to close due to unfinalised statements");
sqlite3_mutex_leave(db->mutex);
return SQLITE_BUSY;
}