We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05274bf commit f6e571eCopy full SHA for f6e571e
src/gdsqlite.cpp
@@ -89,6 +89,11 @@ SQLite::~SQLite()
89
90
bool SQLite::open_db()
91
{
92
+ if (db) {
93
+ UtilityFunctions::printerr("GDSQLite Error: Can't open database if connection is already open!");
94
+ return false;
95
+ }
96
+
97
char *zErrMsg = 0;
98
int rc;
99
if (path.find(":memory:") == -1)
@@ -180,6 +185,7 @@ bool SQLite::close_db()
180
185
}
181
186
182
187
188
+ UtilityFunctions::printerr("GDSQLite Error: Can't close database if connection is not open!");
183
189
return false;
184
190
191
0 commit comments