comparison PostgreSQL/Plugins/PostgreSQLIndex.cpp @ 73:aa81c1c80c75 db-changes

fix compatibility with older sdk
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 04 Jan 2019 17:06:34 +0100
parents 8dd29af7c844
children a4e440e65c68
comparison
equal deleted inserted replaced
72:8dd29af7c844 73:aa81c1c80c75
267 267
268 return static_cast<uint64_t>(ReadInteger64(statement, 0)); 268 return static_cast<uint64_t>(ReadInteger64(statement, 0));
269 } 269 }
270 270
271 271
272 #if ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT == 1
272 void PostgreSQLIndex::CreateInstance(OrthancPluginCreateInstanceResult& result, 273 void PostgreSQLIndex::CreateInstance(OrthancPluginCreateInstanceResult& result,
273 const char* hashPatient, 274 const char* hashPatient,
274 const char* hashStudy, 275 const char* hashStudy,
275 const char* hashSeries, 276 const char* hashSeries,
276 const char* hashInstance) 277 const char* hashInstance)
314 result.patientId = ReadInteger64(statement, 4); 315 result.patientId = ReadInteger64(statement, 4);
315 result.studyId = ReadInteger64(statement, 5); 316 result.studyId = ReadInteger64(statement, 5);
316 result.seriesId = ReadInteger64(statement, 6); 317 result.seriesId = ReadInteger64(statement, 6);
317 } 318 }
318 } 319 }
320 #endif
319 } 321 }