Skip to content

Commit

Permalink
Removed macro
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenplieger committed Jan 29, 2024
1 parent 6a254f3 commit 7987e39
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 19 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ add_definitions("-DSOURCE_PATH_SIZE=${SOURCE_PATH_SIZE}")



add_definitions(-DENABLE_CURL -DADAGUC_USE_GDAL -DADAGUC_USE_SQLITE -DADAGUC_USE_POSTGRESQL -DADAGUC_USE_WEBP)
add_definitions(-DENABLE_CURL -DADAGUC_USE_GDAL -DADAGUC_USE_SQLITE -DADAGUC_USE_WEBP)



Expand Down
6 changes: 0 additions & 6 deletions adagucserverEC/CDBAdapterPostgreSQL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
******************************************************************************/
#include "CDBAdapterPostgreSQL.h"

#ifdef ADAGUC_USE_POSTGRESQL
#include <set>
#include "CDebugger.h"

Expand Down Expand Up @@ -257,9 +256,6 @@ CDBStore::Store *CDBAdapterPostgreSQL::getClosestDataTimeToSystemTime(const char
};

CDBStore::Store *CDBAdapterPostgreSQL::getFilesForIndices(CDataSource *dataSource, size_t *start, size_t *count, ptrdiff_t *, int) {
#ifdef MEASURETIME
StopWatch_Stop(">CDBAdapterPostgreSQL::getFilesForIndices");
#endif
#ifdef CDBAdapterPostgreSQL_DEBUG
CDBDebug("getFilesForIndices");
#endif
Expand Down Expand Up @@ -1135,5 +1131,3 @@ int CDBAdapterPostgreSQL::addFilesToDataBase() {
#endif
return 0;
}

#endif
2 changes: 0 additions & 2 deletions adagucserverEC/CDBAdapterPostgreSQL.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
*
******************************************************************************/

#ifdef ADAGUC_USE_POSTGRESQL
#include "CDBAdapter.h"
#include "CDebugger.h"
#include "CPGSQLDB.h"
Expand Down Expand Up @@ -76,4 +75,3 @@ class CDBAdapterPostgreSQL : public CDBAdapter {
int setFileTimeStamp(const char *tablename, const char *file, const char *dimvalue, int dimindex, const char *filedate, GeoOptions *geoOptions);
int addFilesToDataBase();
};
#endif
6 changes: 1 addition & 5 deletions adagucserverEC/CDBFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,8 @@ CDBAdapter *CDBFactory::getDBAdapter(CServerConfig::XMLE_Configuration *cfg) {
CDBError("SQLITE is not compiled for ADAGUC, not available!");
#endif
} else {
// CDBDebug("Using postgresql");
#ifdef ADAGUC_USE_POSTGRESQL
// CDBDebug("Using postgresql");
staticCDBAdapter = new CDBAdapterPostgreSQL();
#else
CDBError("POSTGRESQL is not compiled for ADAGUC, not available!");
#endif
}

staticCDBAdapter->setConfig(cfg);
Expand Down
3 changes: 1 addition & 2 deletions adagucserverEC/CPGSQLDB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* limitations under the License.
*
******************************************************************************/
#ifdef ADAGUC_USE_POSTGRESQL

#include "CPGSQLDB.h"
const char *CPGSQLDB::className = "CPGSQLDB";
void CPGSQLDB::clearResult() {
Expand Down Expand Up @@ -225,4 +225,3 @@ CDBStore::Store *CPGSQLDB::queryToStore(const char *pszQuery, bool throwExceptio
return store;
;
}
#endif
4 changes: 1 addition & 3 deletions adagucserverEC/CPGSQLDB.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* limitations under the License.
*
******************************************************************************/
#ifdef ADAGUC_USE_POSTGRESQL

#ifndef CPGSQLDB_H
#define CPGSQLDB_H
#include <stdio.h>
Expand Down Expand Up @@ -71,5 +71,3 @@ class CPGSQLDB {
CDBStore::Store *queryToStore(const char *pszQuery) { return queryToStore(pszQuery, false); }
};
#endif

#endif

0 comments on commit 7987e39

Please sign in to comment.