PRAGMA synchronous=FULL
authorBang Kwang-Min <justine.bang@samsung.com>
Mon, 8 Apr 2013 04:48:44 +0000 (13:48 +0900)
committerBang Kwang-Min <justine.bang@samsung.com>
Mon, 8 Apr 2013 04:55:04 +0000 (13:55 +0900)
error : database disk image is malformed

Change-Id: Id36e0e6acede10f29a00c099590d7be667b5fe81

provider/download-provider-db.c

index 6a2303b..04a26ae 100755 (executable)
@@ -67,7 +67,6 @@ int dp_db_open()
                }
                sqlite3_exec(g_dp_db_handle, "PRAGMA journal_mode=PERSIST;", 0, 0, 0);
                sqlite3_exec(g_dp_db_handle, "PRAGMA foreign_keys=ON;", 0, 0, 0);
-               sqlite3_exec(g_dp_db_handle, "PRAGMA synchronous=OFF;", 0, 0, 0); // do not ready to write to db
        }
        return g_dp_db_handle ? 0 : -1;
 }