# HG changeset patch # User Sebastien Jodogne # Date 1546617994 -3600 # Node ID aa81c1c80c75a04127e3423bd95b02913a99451b # Parent 8dd29af7c844bf210c446715444e9c9a5909efc6 fix compatibility with older sdk diff -r 8dd29af7c844 -r aa81c1c80c75 PostgreSQL/Plugins/PostgreSQLIndex.cpp --- a/PostgreSQL/Plugins/PostgreSQLIndex.cpp Fri Jan 04 14:43:35 2019 +0100 +++ b/PostgreSQL/Plugins/PostgreSQLIndex.cpp Fri Jan 04 17:06:34 2019 +0100 @@ -269,6 +269,7 @@ } +#if ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT == 1 void PostgreSQLIndex::CreateInstance(OrthancPluginCreateInstanceResult& result, const char* hashPatient, const char* hashStudy, @@ -316,4 +317,5 @@ result.seriesId = ReadInteger64(statement, 6); } } +#endif } diff -r 8dd29af7c844 -r aa81c1c80c75 PostgreSQL/UnitTests/PostgreSQLTests.cpp --- a/PostgreSQL/UnitTests/PostgreSQLTests.cpp Fri Jan 04 14:43:35 2019 +0100 +++ b/PostgreSQL/UnitTests/PostgreSQLTests.cpp Fri Jan 04 17:06:34 2019 +0100 @@ -439,6 +439,7 @@ } +#if ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT == 1 TEST(PostgreSQLIndex, CreateInstance) { OrthancDatabases::PostgreSQLIndex db(globalParameters_); @@ -511,3 +512,4 @@ ASSERT_NE(r1.seriesId, r2.seriesId); ASSERT_NE(r1.instanceId, r2.instanceId); } +#endif