]> granicus.if.org Git - postgresql/commitdiff
Oops, have to rename local variables called 'errcontext' in contrib, too.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 12 Nov 2012 16:30:51 +0000 (18:30 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 12 Nov 2012 16:30:51 +0000 (18:30 +0200)
As pointed out by Alvaro.

contrib/file_fdw/file_fdw.c

index 81fc4e29008b201d37a688e0e769c7e9df59ae6d..7ab3ed603ae8aa5b7d58e3d052c6b6018979e0e6 100644 (file)
@@ -614,13 +614,13 @@ fileIterateForeignScan(ForeignScanState *node)
        FileFdwExecutionState *festate = (FileFdwExecutionState *) node->fdw_state;
        TupleTableSlot *slot = node->ss.ss_ScanTupleSlot;
        bool            found;
-       ErrorContextCallback errcontext;
+       ErrorContextCallback errcallback;
 
        /* Set up callback to identify error line number. */
-       errcontext.callback = CopyFromErrorCallback;
-       errcontext.arg = (void *) festate->cstate;
-       errcontext.previous = error_context_stack;
-       error_context_stack = &errcontext;
+       errcallback.callback = CopyFromErrorCallback;
+       errcallback.arg = (void *) festate->cstate;
+       errcallback.previous = error_context_stack;
+       error_context_stack = &errcallback;
 
        /*
         * The protocol for loading a virtual tuple into a slot is first
@@ -642,7 +642,7 @@ fileIterateForeignScan(ForeignScanState *node)
                ExecStoreVirtualTuple(slot);
 
        /* Remove error callback. */
-       error_context_stack = errcontext.previous;
+       error_context_stack = errcallback.previous;
 
        return slot;
 }
@@ -976,7 +976,7 @@ file_acquire_sample_rows(Relation onerel, int elevel,
        char       *filename;
        List       *options;
        CopyState       cstate;
-       ErrorContextCallback errcontext;
+       ErrorContextCallback errcallback;
        MemoryContext oldcontext = CurrentMemoryContext;
        MemoryContext tupcontext;
 
@@ -1009,10 +1009,10 @@ file_acquire_sample_rows(Relation onerel, int elevel,
        rstate = anl_init_selection_state(targrows);
 
        /* Set up callback to identify error line number. */
-       errcontext.callback = CopyFromErrorCallback;
-       errcontext.arg = (void *) cstate;
-       errcontext.previous = error_context_stack;
-       error_context_stack = &errcontext;
+       errcallback.callback = CopyFromErrorCallback;
+       errcallback.arg = (void *) cstate;
+       errcallback.previous = error_context_stack;
+       error_context_stack = &errcallback;
 
        *totalrows = 0;
        *totaldeadrows = 0;
@@ -1072,7 +1072,7 @@ file_acquire_sample_rows(Relation onerel, int elevel,
        }
 
        /* Remove error callback. */
-       error_context_stack = errcontext.previous;
+       error_context_stack = errcallback.previous;
 
        /* Clean up. */
        MemoryContextDelete(tupcontext);