File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 14
14
***************************************************************************/
15
15
16
16
#include " qgsslconnect.h"
17
+ #include " qgslogger.h"
17
18
18
19
#include < sqlite3.h>
19
20
#include < spatialite.h>
@@ -52,6 +53,11 @@ int QgsSLConnect::sqlite3_close( sqlite3 *db )
52
53
spatialite_cleanup_ex ( mSLconns .take ( db ) );
53
54
#endif
54
55
56
+ if ( res != SQLITE_OK )
57
+ {
58
+ QgsDebugMsg ( QString ( " sqlite3_close() failed: %1" ).arg ( res ) );
59
+ }
60
+
55
61
return res;
56
62
}
57
63
@@ -85,5 +91,10 @@ int QgsSLConnect::sqlite3_close_v2( sqlite3 *db )
85
91
spatialite_cleanup_ex ( mSLconns .take ( db ) );
86
92
#endif
87
93
94
+ if ( res != SQLITE_OK )
95
+ {
96
+ QgsDebugMsg ( QString ( " sqlite3_close() failed: %1" ).arg ( res ) );
97
+ }
98
+
88
99
return res;
89
100
}
You can’t perform that action at this time.
0 commit comments