diff --git a/core/java/android/database/sqlite/SQLiteDatabase.java b/core/java/android/database/sqlite/SQLiteDatabase.java index fa79a9e56440c..3c5a0290f3dc0 100644 --- a/core/java/android/database/sqlite/SQLiteDatabase.java +++ b/core/java/android/database/sqlite/SQLiteDatabase.java @@ -1837,6 +1837,12 @@ public class SQLiteDatabase extends SQLiteClosable { * Instead, you're encouraged to use {@link #insert(String, String, ContentValues)}, * {@link #update(String, ContentValues, String, String[])}, et al, when possible. *

+ *

+ * When using {@link #enableWriteAheadLogging()}, journal_mode is + * automatically managed by this class. So, do not set journal_mode + * using "PRAGMA journal_mode'" statement if your app is using + * {@link #enableWriteAheadLogging()} + *

* * @param sql the SQL statement to be executed. Multiple statements separated by semicolons are * not supported. @@ -1904,6 +1910,12 @@ public class SQLiteDatabase extends SQLiteClosable { *
  • PRAGMA that returns no data
  • * *

    + *

    + * When using {@link #enableWriteAheadLogging()}, journal_mode is + * automatically managed by this class. So, do not set journal_mode + * using "PRAGMA journal_mode'" statement if your app is using + * {@link #enableWriteAheadLogging()} + *

    * * @param sql the SQL statement to be executed. Multiple statements separated by semicolons are * not supported.