Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/editors/codelite/files/patch-DatabaseExplorer_PostgreSqlDbAdapter.cpp
16151 views
1
--- DatabaseExplorer/PostgreSqlDbAdapter.cpp.orig 2020-08-28 17:27:12 UTC
2
+++ DatabaseExplorer/PostgreSqlDbAdapter.cpp
3
@@ -307,7 +307,7 @@ bool PostgreSqlDbAdapter::GetColumns(Table* pTab) {
4
// SetDatabase(pTab->GetParentName());
5
DatabaseLayerPtr dbLayer = this->GetDatabaseLayer(pTab->GetParentName());
6
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("SHOW COLUMNS IN `%s`.`%s`"),pTab->getParentName().c_str(),pTab->getName().c_str()));
12
13