Remove useless variable stores
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 15 Dec 2020 22:51:16 +0000 (19:51 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 15 Dec 2020 22:51:16 +0000 (19:51 -0300)
Mistakenly introduced in 4cbe3ac3e867; bug repaired in 148e632c0541 but
the stores were accidentally.

src/backend/executor/nodeModifyTable.c

index e0f24283b80d1926c19acca2245f8bfafeea41c9..ab3d655e603b741963eab9619232465c2297bc40 100644 (file)
@@ -2368,7 +2368,6 @@ ExecInitModifyTable(ModifyTable *node, EState *estate, int eflags)
         * Initialize any WITH CHECK OPTION constraints if needed.
         */
        resultRelInfo = mtstate->resultRelInfo;
-       i = 0;
        foreach(l, node->withCheckOptionLists)
        {
                List       *wcoList = (List *) lfirst(l);
@@ -2387,7 +2386,6 @@ ExecInitModifyTable(ModifyTable *node, EState *estate, int eflags)
                resultRelInfo->ri_WithCheckOptions = wcoList;
                resultRelInfo->ri_WithCheckOptionExprs = wcoExprs;
                resultRelInfo++;
-               i++;
        }
 
        /*