mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Rename 'cmd' to 'cmd_name' in CreatePolicyStmt
To avoid confusion, rename CreatePolicyStmt's 'cmd' to 'cmd_name', parse_policy_command's 'cmd' to 'polcmd', and AlterPolicy's 'cmd_datum' to 'polcmd_datum', per discussion with Noah and as a follow-up to his correction of copynodes/equalnodes handling of the CreatePolicyStmt 'cmd' field. Back-patch to 9.5 where the CreatePolicyStmt was introduced, as we are still only in alpha.
This commit is contained in:
@ -4083,7 +4083,7 @@ _copyCreatePolicyStmt(const CreatePolicyStmt *from)
|
||||
|
||||
COPY_STRING_FIELD(policy_name);
|
||||
COPY_NODE_FIELD(table);
|
||||
COPY_STRING_FIELD(cmd);
|
||||
COPY_STRING_FIELD(cmd_name);
|
||||
COPY_NODE_FIELD(roles);
|
||||
COPY_NODE_FIELD(qual);
|
||||
COPY_NODE_FIELD(with_check);
|
||||
|
@ -2074,7 +2074,7 @@ _equalCreatePolicyStmt(const CreatePolicyStmt *a, const CreatePolicyStmt *b)
|
||||
{
|
||||
COMPARE_STRING_FIELD(policy_name);
|
||||
COMPARE_NODE_FIELD(table);
|
||||
COMPARE_STRING_FIELD(cmd);
|
||||
COMPARE_STRING_FIELD(cmd_name);
|
||||
COMPARE_NODE_FIELD(roles);
|
||||
COMPARE_NODE_FIELD(qual);
|
||||
COMPARE_NODE_FIELD(with_check);
|
||||
|
Reference in New Issue
Block a user