Reset error code after rollback transaction
authorSangyoon Jang <jeremy.jang@samsung.com>
Fri, 12 Oct 2018 10:29:19 +0000 (19:29 +0900)
committer장상윤/Tizen Platform Lab(SR)/Engineer/삼성전자 <jeremy.jang@samsung.com>
Fri, 12 Oct 2018 11:01:20 +0000 (20:01 +0900)
Change-Id: I67596c1c46528649abeb3694238b90fdc15f0ec8
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/common/sqlite_connection.cc

index 44dbde93804bf47bcb7477406297772afd267a53..39817b447baa94bf4fe2756fcd32f48255ab7a1f 100644 (file)
@@ -84,6 +84,7 @@ bool SQLiteConnection::CommitTransaction() {
 }
 
 bool SQLiteConnection::RollbackTransaction() {
+  SetErrorCode(0);
   return Execute("ROLLBACK");
 }