Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/editors/codelite/files/patch-DatabaseExplorer_SqliteDbAdapter.cpp
16151 views
1
--- DatabaseExplorer/SqliteDbAdapter.cpp.orig 2020-08-28 17:30:30 UTC
2
+++ DatabaseExplorer/SqliteDbAdapter.cpp
3
@@ -122,7 +122,7 @@ bool SQLiteDbAdapter::GetColumns(Table* pTab) {
4
int i = 0;
5
DatabaseLayerPtr dbLayer = this->GetDatabaseLayer(wxT(""));
6
if (dbLayer) {
7
- if (!dbLayer->IsOpen()) return NULL;
8
+ if (!dbLayer->IsOpen()) return false;
9
// loading columns
10
//TODO:SQL:
11
DatabaseResultSet *database = dbLayer->RunQueryWithResults(wxString::Format(wxT("PRAGMA table_info('%s')"),pTab->GetName().c_str()));
12
13