From a5e4c9b57e80e4a6453b6adbe13b7e24dd06c66c 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 (cherry picked from commit 6886cf93eca9b05dc2ccfa1d681d86e9d95385b4) Signed-off-by: Lucas Gass --- 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 92ad647fb1..dc0ba9f348 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