summaryrefslogtreecommitdiff
path: root/dist/sqlite3.c
diff options
context:
space:
mode:
Diffstat (limited to 'dist/sqlite3.c')
-rw-r--r--dist/sqlite3.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/dist/sqlite3.c b/dist/sqlite3.c
index e92537d..fe17797 100644
--- a/dist/sqlite3.c
+++ b/dist/sqlite3.c
@@ -960,9 +960,6 @@ SQLITE_API int sqlite3_exec(
#define SQLITE_FORMAT 24 /* Auxiliary database format error */
#define SQLITE_RANGE 25 /* 2nd parameter to sqlite3_bind out of range */
#define SQLITE_NOTADB 26 /* File opened that is not a database file */
-// Begin Android Add
-#define SQLITE_UNCLOSED 27 /* db can't be closed due unfinalized stmts */
-// End Android Add
#define SQLITE_ROW 100 /* sqlite3_step() has another row ready */
#define SQLITE_DONE 101 /* sqlite3_step() has finished executing */
/* end-of-error-codes */
@@ -112960,16 +112957,10 @@ SQLITE_API int sqlite3_close(sqlite3 *db){
/* 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 buff[120];
- snprintf(buff, sizeof(buff), "%d,%s", (int)db->pVdbe, db->pVdbe->zSql);
- sqlite3Error(db, SQLITE_UNCLOSED, buff);
- // End Android Change
-
+ sqlite3Error(db, SQLITE_BUSY,
+ "unable to close due to unfinalised statements");
sqlite3_mutex_leave(db->mutex);
- return SQLITE_UNCLOSED;
+ return SQLITE_BUSY;
}
assert( sqlite3SafetyCheckSickOrOk(db) );