[Koha-bugs] [Bug 10662] Build OAI-PMH Harvesting Client

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 1 09:43:01 CET 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10662

--- Comment #211 from Josef Moravec <josef.moravec at gmail.com> ---
Comment on attachment 81783
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81783
Bug 10662: Build OAI-PMH Harvesting Client

Review of attachment 81783:
 --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=10662&attachment=81783)
-----------------------------------------------------------------

::: Koha/OAI/Harvester/Worker/Download/Stream.pm
@@ +111,5 @@
> +    }
> +
> +    #NOTE: Prepare database statement handle
> +    my $dbh = C4::Context->dbh;
> +    my $sql = "insert into oai_harvester_import_queue (uuid,result) VALUES (?,?)";

You should not use SQL in Koha modules, use
Koha::OAI::Harvester::ImportQueue->new in place of execution of this statement

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list