We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 426ed4c commit 011c3f5Copy full SHA for 011c3f5
3 files changed
boost_src/sqlite3pp.cpp
@@ -97,7 +97,9 @@ namespace sqlite3pp
97
int rc = SQLITE_OK;
98
if (db_) {
99
rc = sqlite3_close(db_);
100
- db_ = 0;
+ if (rc == SQLITE_OK) {
101
+ db_ = 0;
102
+ }
103
}
104
105
return rc;
headeronly_src/sqlite3pp.ipp
@@ -114,7 +114,9 @@ namespace sqlite3pp
114
auto rc = SQLITE_OK;
115
116
117
- db_ = nullptr;
118
+ db_ = nullptr;
119
120
121
122
src/sqlite3pp.cpp
@@ -116,7 +116,9 @@ namespace sqlite3pp
123
124
0 commit comments