Bug 27652: (follow-up) Correct typo in database update
authorOwen Leonard <oleonard@myacpl.org>
Wed, 10 Feb 2021 18:58:57 +0000 (18:58 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 9 Mar 2021 16:20:47 +0000 (17:20 +0100)
This patch adds a missing "SET" in the database update. Before:

   UPDATE systempreferences
   value=REPLACE(value, '|', ',')

Corrected:

   UPDATE systempreferences
   SET value=REPLACE(value, '|', ',')

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
installer/data/mysql/atomicupdate/bug_27652.perl

index 13a1f75..ba0581b 100644 (file)
@@ -3,7 +3,7 @@ if( CheckVersion( $DBversion ) ) {
 
     $dbh->do(q{
         UPDATE systempreferences
-        value=REPLACE(value, '|', ',')
+        SET value=REPLACE(value, '|', ',')
         WHERE variable="OPACHoldsIfAvailableAtPickupExceptions"
            OR variable="BatchCheckoutsValidCategories"
     });