8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 18:43:03 +01:00

Shortcut.

This commit is contained in:
robocop 2009-12-24 12:56:31 +00:00
parent d2c33b9533
commit 105bb19114
4 changed files with 6 additions and 6 deletions

View File

@ -968,7 +968,7 @@ SuspendNode* SuspendNode::internalDsqlPass()
Arg::Gds(isc_dsql_unsupported_in_auto_trans) << Arg::Str("SUSPEND"));
}
statement->setFlags(statement->getFlags() | DsqlCompiledStatement::FLAG_SELECTABLE);
statement->addFlags(DsqlCompiledStatement::FLAG_SELECTABLE);
blockNode = statement->getBlockNode();

View File

@ -2652,9 +2652,9 @@ static dsql_req* prepareStatement(thread_db* tdbb, dsql_dbb* database, jrd_tra*
default:
if (client_dialect > SQL_DIALECT_V5)
statement->setFlags(statement->getFlags() | DsqlCompiledStatement::FLAG_BLR_VERSION5);
statement->addFlags(DsqlCompiledStatement::FLAG_BLR_VERSION5);
else
statement->setFlags(statement->getFlags() | DsqlCompiledStatement::FLAG_BLR_VERSION4);
statement->addFlags(DsqlCompiledStatement::FLAG_BLR_VERSION4);
GEN_request(request, scratch, node);
// fall into
@ -2864,7 +2864,7 @@ static void release_request(thread_db* tdbb, dsql_req* request, bool drop)
for (size_t i = 0; i < request->cursors.getCount(); ++i)
{
DsqlCompiledStatement* child = request->cursors[i];
child->setFlags(child->getFlags() | DsqlCompiledStatement::FLAG_ORPHAN);
child->addFlags(DsqlCompiledStatement::FLAG_ORPHAN);
child->setParentRequest(NULL);
Jrd::ContextPoolHolder context(tdbb, &child->getPool());

View File

@ -414,6 +414,7 @@ public:
ULONG getFlags() const { return flags; }
void setFlags(ULONG value) { flags = value; }
void addFlags(ULONG value) { flags |= value; }
Firebird::RefStrPtr& getSqlText() { return sqlText; }
const Firebird::RefStrPtr& getSqlText() const { return sqlText; }

View File

@ -1759,8 +1759,7 @@ dsql_nod* PASS1_statement(DsqlCompilerScratch* dsqlScratch, dsql_nod* input)
if (input->nod_arg[e_select_update])
{
dsqlScratch->getStatement()->setType(DsqlCompiledStatement::TYPE_SELECT_UPD);
dsqlScratch->getStatement()->setFlags(dsqlScratch->getStatement()->getFlags() |
DsqlCompiledStatement::FLAG_NO_BATCH);
dsqlScratch->getStatement()->addFlags(DsqlCompiledStatement::FLAG_NO_BATCH);
break;
}