Skip to content

Commit c84d945

Browse files
committed
Fix the condition to be explicit
1 parent 81156ba commit c84d945

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dsql/dsql.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,8 @@ static RefPtr<DsqlStatement> prepareStatement(thread_db* tdbb, dsql_dbb* databas
640640
dsqlStatement->setOrgText(text, textLength);
641641

642642
const bool basedOnCursor =
643-
(dsqlStatement->getType() & (DsqlStatement::TYPE_UPDATE_CURSOR |
644-
DsqlStatement::TYPE_DELETE_CURSOR));
643+
(dsqlStatement->getType() == DsqlStatement::TYPE_UPDATE_CURSOR ||
644+
dsqlStatement->getType() == DsqlStatement::TYPE_DELETE_CURSOR);
645645

646646
if (isStatementCacheActive && dsqlStatement->isDml() && !basedOnCursor)
647647
{

0 commit comments

Comments
 (0)