Skip to content

Commit

Permalink
Fix CORE-4418, using the property of special triggers that are marked…
Browse files Browse the repository at this point in the history
… "system" or "ignore_perm".
  • Loading branch information
robocop committed May 6, 2014
1 parent 14dffb7 commit e6d3b34
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 60 deletions.
1 change: 1 addition & 0 deletions src/jrd/JrdStatement.h
Expand Up @@ -35,6 +35,7 @@ class JrdStatement : public pool_alloc<type_req>
static const unsigned FLAG_INTERNAL = 0x02;
static const unsigned FLAG_IGNORE_PERM = 0x04;
//static const unsigned FLAG_VERSION4 = 0x08;
static const unsigned FLAG_POWERFUL = FLAG_SYS_TRIGGER | FLAG_INTERNAL | FLAG_IGNORE_PERM;

//static const unsigned MAP_LENGTH; // CVC: Moved to dsql/Nodes.h as STREAM_MAP_LENGTH
static const unsigned MAX_CLONES = 1000;
Expand Down
5 changes: 5 additions & 0 deletions src/jrd/req.h
Expand Up @@ -251,6 +251,11 @@ class jrd_req : public pool_alloc<type_req>
return statement->flags & JrdStatement::FLAG_INTERNAL;
}

bool hasPowerfulStatement() const
{
return statement->flags & JrdStatement::FLAG_POWERFUL;
}

void setAttachment(Attachment* newAttachment)
{
req_attachment = newAttachment;
Expand Down

0 comments on commit e6d3b34

Please sign in to comment.