fix flag checks
fix flag checks

pandazheng/sqlcipher,luis-allan/sqlcipher,pandazheng/sqlcipher,RAN-II/sqlcipher,RAN-II/sqlcipher,luis-allan/sqlcipher,shanshan1026/sqlcipher,bestofsong/sqlcipher,hongbinz/sqlcipher,cnbin/sqlcipher,bestofsong/sqlcipher,pandazheng/sqlcipher,RAN-II/sqlcipher,supriyantomaftuh/sqlcipher,hongbinz/sqlcipher,bestofsong/sqlcipher,ylfonline/sqlcipher,cnbin/sqlcipher,hongbinz/sqlcipher,luis-allan/sqlcipher,ylfonline/sqlcipher,Mozhuowen/sqlcipher,shanshan1026/sqlcipher,supriyantomaftuh/sqlcipher,shanshan1026/sqlcipher,cnbin/sqlcipher,emodeqidao/sqlcipher,shanshan1026/sqlcipher,emodeqidao/sqlcipher,emodeqidao/sqlcipher,supriyantomaftuh/sqlcipher,Mozhuowen/sqlcipher,Mozhuowen/sqlcipher,ylfonline/sqlcipher