SQLite changes() function reports 0 rows changed in certain delete statements
问题 I've recently found the CHANGES() function available inside of SQLite. I'm doing something like the following inside of my Android code: db.execSQL(sqlStatement, argumentArray); int result; SQLiteStatement stmt = db.compileStatement("SELECT CHANGES()"); try { return stmt.simpleQueryForLong(); } finally { stmt.close(); } What I'm seeing that I get good data for all statements such as: UPDATE `footable` SET `stuff` = 'fepojefpjo' (returns 1 row updated) DROP TABLE `footable` (returns 2 rows