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
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=546765
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()));

View File

@ -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()));

View File

@ -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()));