8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 09:20:39 +01:00

Fix the condition to be explicit

This commit is contained in:
Dmitry Yemanov 2024-10-23 11:22:02 +03:00
parent 81156ba56a
commit c84d945b70

View File

@ -640,8 +640,8 @@ static RefPtr<DsqlStatement> prepareStatement(thread_db* tdbb, dsql_dbb* databas
dsqlStatement->setOrgText(text, textLength);
const bool basedOnCursor =
(dsqlStatement->getType() & (DsqlStatement::TYPE_UPDATE_CURSOR |
DsqlStatement::TYPE_DELETE_CURSOR));
(dsqlStatement->getType() == DsqlStatement::TYPE_UPDATE_CURSOR ||
dsqlStatement->getType() == DsqlStatement::TYPE_DELETE_CURSOR);
if (isStatementCacheActive && dsqlStatement->isDml() && !basedOnCursor)
{