Bug 25858: Use bitwise OR for setting a bit in borrowers.flag
authorAleisha Amohia <aleishaamohia@hotmail.com>
Thu, 16 Jul 2020 04:24:38 +0000 (16:24 +1200)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Wed, 22 Jul 2020 22:08:03 +0000 (00:08 +0200)
Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>

(cherry picked from commit 4f6b3c4a6173810bba24b89d82eb223226278b9c)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>

installer/data/mysql/updatedatabase.pl

index 10acce2..dd35121 100755 (executable)
@@ -18960,7 +18960,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)
     });
 
     SetVersion( $DBversion );