diff --git a/editors/codelite/files/patch-DatabaseExplorer_MySqlDbAdapter.cpp b/editors/codelite/files/patch-DatabaseExplorer_MySqlDbAdapter.cpp new file mode 100644 index 000000000000..9f3838fe8e96 --- /dev/null +++ b/editors/codelite/files/patch-DatabaseExplorer_MySqlDbAdapter.cpp @@ -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())); diff --git a/editors/codelite/files/patch-DatabaseExplorer_PostgreSqlDbAdapter.cpp b/editors/codelite/files/patch-DatabaseExplorer_PostgreSqlDbAdapter.cpp new file mode 100644 index 000000000000..9e2d570a76c6 --- /dev/null +++ b/editors/codelite/files/patch-DatabaseExplorer_PostgreSqlDbAdapter.cpp @@ -0,0 +1,11 @@ +--- DatabaseExplorer/PostgreSqlDbAdapter.cpp.orig 2020-08-28 17:27:12 UTC ++++ DatabaseExplorer/PostgreSqlDbAdapter.cpp +@@ -307,7 +307,7 @@ bool PostgreSqlDbAdapter::GetColumns(Table* pTab) { + // SetDatabase(pTab->GetParentName()); + DatabaseLayerPtr dbLayer = this->GetDatabaseLayer(pTab->GetParentName()); + +- 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())); diff --git a/editors/codelite/files/patch-DatabaseExplorer_SqliteDbAdapter.cpp b/editors/codelite/files/patch-DatabaseExplorer_SqliteDbAdapter.cpp new file mode 100644 index 000000000000..1b908a8b4821 --- /dev/null +++ b/editors/codelite/files/patch-DatabaseExplorer_SqliteDbAdapter.cpp @@ -0,0 +1,11 @@ +--- DatabaseExplorer/SqliteDbAdapter.cpp.orig 2020-08-28 17:30:30 UTC ++++ DatabaseExplorer/SqliteDbAdapter.cpp +@@ -122,7 +122,7 @@ bool SQLiteDbAdapter::GetColumns(Table* pTab) { + int i = 0; + DatabaseLayerPtr dbLayer = this->GetDatabaseLayer(wxT("")); + if (dbLayer) { +- if (!dbLayer->IsOpen()) return NULL; ++ if (!dbLayer->IsOpen()) return false; + // loading columns + //TODO:SQL: + DatabaseResultSet *database = dbLayer->RunQueryWithResults(wxString::Format(wxT("PRAGMA table_info('%s')"),pTab->GetName().c_str()));