editors/codelite: fix build on recent current

This commit is contained in:
Tobias C. Berner
2020-08-28 17:36:55 +00:00
parent 8d154280e8
commit 07691a7ce4
3 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
--- DatabaseExplorer/MySqlDbAdapter.cpp.orig 2020-08-28 17:23:13 UTC
+++ DatabaseExplorer/MySqlDbAdapter.cpp
@@ -210,7 +210,7 @@ bool MySqlDbAdapter::GetColumns(Table* pTab)
{
DatabaseLayerPtr dbLayer = this->GetDatabaseLayer(wxT(""));
- if (!dbLayer->IsOpen()) return NULL;
+ if (!dbLayer->IsOpen()) return false;
// loading columns
//TODO:SQL:
DatabaseResultSet *database = dbLayer->RunQueryWithResults(wxString::Format(wxT("SHOW COLUMNS IN `%s`.`%s`"),pTab->GetParentName().c_str(),pTab->GetName().c_str()));