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:
parent
81156ba56a
commit
c84d945b70
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user