Skip to content

Commit 6050e72

Browse files
committed
Update parameter in ExecutorCheckPerms hook.
The abort parameter conflicts with the abort function so rename it to the name used in the hook type.
1 parent c10db12 commit 6050e72

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

pgaudit.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,9 @@ pgaudit_ExecutorStart_hook(QueryDesc *queryDesc, int eflags)
14241424
* Hook ExecutorCheckPerms to do session and object auditing for DML.
14251425
*/
14261426
static bool
1427-
pgaudit_ExecutorCheckPerms_hook(List *rangeTabls, List *permInfos, bool abort)
1427+
pgaudit_ExecutorCheckPerms_hook(List *rangeTabls,
1428+
List *permInfos,
1429+
bool ereport_on_violation)
14281430
{
14291431
Oid auditOid;
14301432

@@ -1471,7 +1473,8 @@ pgaudit_ExecutorCheckPerms_hook(List *rangeTabls, List *permInfos, bool abort)
14711473

14721474
/* Call the next hook function */
14731475
if (next_ExecutorCheckPerms_hook &&
1474-
!(*next_ExecutorCheckPerms_hook) (rangeTabls, permInfos, abort))
1476+
!(*next_ExecutorCheckPerms_hook)(rangeTabls, permInfos,
1477+
ereport_on_violation))
14751478
return false;
14761479

14771480
return true;

0 commit comments

Comments
 (0)