From 6886cf93eca9b05dc2ccfa1d681d86e9d95385b4 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 26 Jun 2020 10:55:44 +0400 Subject: [PATCH] Bug 25858: Use bitwise OR for setting a bit in borrowers.flag Signed-off-by: Julian Maurice Thanks-to: Didier Gautheron Signed-off-by: Jonathan Druart --- installer/data/mysql/updatedatabase.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 303164d558..abb403243c 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -20650,7 +20650,7 @@ if( CheckVersion( $DBversion ) ) { }); $dbh->do(q{ - UPDATE borrowers SET flags = flags + (1<<12) WHERE flags & (1 << 11) AND !(flags & (1 << 12)) + UPDATE borrowers SET flags = flags | (1<<12) WHERE flags & (1 << 11) }); NewVersion( $DBversion, 22868, 'Move suggestions_manage subpermission out of acquisition permission' ); -- 2.39.5