[Koha-bugs] [Bug 27012] Merging records with holds causes SQL error

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Nov 16 10:34:58 CET 2020


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

Josef Moravec <josef.moravec at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #113633|0                           |1
        is obsolete|                            |

--- Comment #10 from Josef Moravec <josef.moravec at gmail.com> ---
Created attachment 113652
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113652&action=edit
Bug 27012: Fix incorrect SQL syntax in hold merging

If you merge two records with holds in them following error happens
without this patch:

[WARN] DBD::mysql::st execute failed: called with 4 bind variables when 3 are
needed [for Statement "SELECT * FROM reserves WHERE biblionumber = ? AND (found
<> ? AND found <> ? OR found is NULL) ORDER BY reservedate ASC" with
ParamValues: 0=Null!, 1=Null!, 2=Null!] at /kohadevbox/koha/C4/Reserves.pm line
2002.

To test:
   1) Notice prove t/db_dependent/Reserves.t fails with above error
   2) Apply patch
   3) Notice prove t/db_dependent/Reserves.t passes

Signed-off-by: Victor Grousset/tuxayo <victor at tuxayo.net>

Signed-off-by: Josef Moravec <josef.moravec at gmail.com>

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


More information about the Koha-bugs mailing list