Add missing db_ reset 66/324366/3
authorChanggyu Choi <changyu.choi@samsung.com>
Fri, 16 May 2025 04:03:29 +0000 (13:03 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Tue, 20 May 2025 06:17:41 +0000 (06:17 +0000)
After Commit(), the pointer should be reset so that db_ is not accessed.

Change-Id: I6212a2a6586752690493053f0e699fcaf20e390b
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
src/tizen-database/database.hpp

index ebaa0cad34c51af8ed52bd9011f1bfa3c11fa2c5..7fcf4792e821e802e5fd9759e280171e38159cf4 100644 (file)
@@ -240,6 +240,7 @@ class Database {
         sqlite3_exec(db.get(), "ROLLBACK", nullptr, nullptr, nullptr);
       }
 
+      db_.reset();
       return ret;
     }