Mercurial > hg > orthanc-databases
comparison Framework/Plugins/IndexBackend.cpp @ 532:25cfcb752af6 large-queries
merged find-refactoring -> large-queries
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Fri, 06 Sep 2024 15:31:33 +0200 |
parents | 2ab3d45c0b3c |
children | 4ecf50a4521c |
comparison
equal
deleted
inserted
replaced
524:48aba35fe64e | 532:25cfcb752af6 |
---|---|
590 bool& done /*out*/, | 590 bool& done /*out*/, |
591 DatabaseManager& manager, | 591 DatabaseManager& manager, |
592 int64_t since, | 592 int64_t since, |
593 uint32_t limit) | 593 uint32_t limit) |
594 { | 594 { |
595 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 13, 0) | 595 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 5) |
596 GetChanges2(output, done, manager, since, -1, _OrthancPluginChangeType_All, limit); | 596 GetChangesExtended(output, done, manager, since, -1, _OrthancPluginChangeType_All, limit); |
597 #else | 597 #else |
598 GetChanges2(output, done, manager, since, -1, 65535, limit); | 598 GetChangesExtended(output, done, manager, since, -1, 65535, limit); |
599 #endif | 599 #endif |
600 } | 600 } |
601 | 601 |
602 /* Use GetOutput().AnswerChange() */ | 602 /* Use GetOutput().AnswerChange() */ |
603 void IndexBackend::GetChanges2(IDatabaseBackendOutput& output, | 603 void IndexBackend::GetChangesExtended(IDatabaseBackendOutput& output, |
604 bool& done /*out*/, | 604 bool& done /*out*/, |
605 DatabaseManager& manager, | 605 DatabaseManager& manager, |
606 int64_t since, | 606 int64_t since, |
607 int64_t to, | 607 int64_t to, |
608 int32_t changeType, | 608 int32_t changeType, |
609 uint32_t limit) | 609 uint32_t limit) |
610 { | 610 { |
611 std::string limitSuffix; | 611 std::string limitSuffix; |
612 if (manager.GetDialect() == Dialect_MSSQL) | 612 if (manager.GetDialect() == Dialect_MSSQL) |
613 { | 613 { |
614 limitSuffix = "OFFSET 0 ROWS FETCH FIRST ${limit} ROWS ONLY"; | 614 limitSuffix = "OFFSET 0 ROWS FETCH FIRST ${limit} ROWS ONLY"; |