git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c27033f)
Remove useless double calls of make_parsestate().
2016年3月17日 20:46:23 +0000 (16:46 -0400)
2016年3月17日 20:46:35 +0000 (16:46 -0400)
Aleksander Alekseev


diff --git a/src/backend/commands/policy.c b/src/backend/commands/policy.c
index bb735ac02060083eb9f886a2ac7fbdfe2b6bcd29..93d15e477afddce51b57848af7cc68fc172e7caf 100644 (file)
--- a/src/backend/commands/policy.c
+++ b/src/backend/commands/policy.c
@@ -1081,7 +1081,7 @@ AlterPolicy(AlterPolicyStmt *stmt)
if (!attr_isnull)
{
char *qual_value;
- ParseState *qual_pstate = make_parsestate(NULL);
+ ParseState *qual_pstate;
/* parsestate is built just to build the range table */
qual_pstate = make_parsestate(NULL);
@@ -1122,7 +1122,7 @@ AlterPolicy(AlterPolicyStmt *stmt)
if (!attr_isnull)
{
char *with_check_value;
- ParseState *with_check_pstate = make_parsestate(NULL);
+ ParseState *with_check_pstate;
/* parsestate is built just to build the range table */
with_check_pstate = make_parsestate(NULL);
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /