diff options
author | Tobias C. Berner <tcberner@FreeBSD.org> | 2020-08-28 17:36:55 +0000 |
---|---|---|
committer | Tobias C. Berner <tcberner@FreeBSD.org> | 2020-08-28 17:36:55 +0000 |
commit | 07691a7ce4d3cbb61e66861e2ebc3291fe07fa40 (patch) | |
tree | 597480eff98677ddb78f33010e677e5748911769 /editors | |
parent | 8d154280e8d693e83f9dd2308e443d1bcfea7104 (diff) | |
download | ports-07691a7ce4d3cbb61e66861e2ebc3291fe07fa40.tar.gz ports-07691a7ce4d3cbb61e66861e2ebc3291fe07fa40.zip |
Notes
Diffstat (limited to 'editors')
3 files changed, 33 insertions, 0 deletions
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())); |