Commit bd0ab289 authored by Tom Lane's avatar Tom Lane

Remove useless double calls of make_parsestate().

Aleksander Alekseev
parent c27033ff
...@@ -1081,7 +1081,7 @@ AlterPolicy(AlterPolicyStmt *stmt) ...@@ -1081,7 +1081,7 @@ AlterPolicy(AlterPolicyStmt *stmt)
if (!attr_isnull) if (!attr_isnull)
{ {
char *qual_value; char *qual_value;
ParseState *qual_pstate = make_parsestate(NULL); ParseState *qual_pstate;
/* parsestate is built just to build the range table */ /* parsestate is built just to build the range table */
qual_pstate = make_parsestate(NULL); qual_pstate = make_parsestate(NULL);
...@@ -1122,7 +1122,7 @@ AlterPolicy(AlterPolicyStmt *stmt) ...@@ -1122,7 +1122,7 @@ AlterPolicy(AlterPolicyStmt *stmt)
if (!attr_isnull) if (!attr_isnull)
{ {
char *with_check_value; char *with_check_value;
ParseState *with_check_pstate = make_parsestate(NULL); ParseState *with_check_pstate;
/* parsestate is built just to build the range table */ /* parsestate is built just to build the range table */
with_check_pstate = make_parsestate(NULL); with_check_pstate = make_parsestate(NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment