Skip to content

Commit d092d11

Browse files
committed
Oops, have to rename local variables called 'errcontext' in contrib, too.
As pointed out by Alvaro.
1 parent dbdf967 commit d092d11

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

contrib/file_fdw/file_fdw.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -614,13 +614,13 @@ fileIterateForeignScan(ForeignScanState *node)
614614
FileFdwExecutionState *festate = (FileFdwExecutionState *) node->fdw_state;
615615
TupleTableSlot *slot = node->ss.ss_ScanTupleSlot;
616616
bool found;
617-
ErrorContextCallback errcontext;
617+
ErrorContextCallback errcallback;
618618

619619
/* Set up callback to identify error line number. */
620-
errcontext.callback = CopyFromErrorCallback;
621-
errcontext.arg = (void *) festate->cstate;
622-
errcontext.previous = error_context_stack;
623-
error_context_stack = &errcontext;
620+
errcallback.callback = CopyFromErrorCallback;
621+
errcallback.arg = (void *) festate->cstate;
622+
errcallback.previous = error_context_stack;
623+
error_context_stack = &errcallback;
624624

625625
/*
626626
* The protocol for loading a virtual tuple into a slot is first
@@ -642,7 +642,7 @@ fileIterateForeignScan(ForeignScanState *node)
642642
ExecStoreVirtualTuple(slot);
643643

644644
/* Remove error callback. */
645-
error_context_stack = errcontext.previous;
645+
error_context_stack = errcallback.previous;
646646

647647
return slot;
648648
}
@@ -976,7 +976,7 @@ file_acquire_sample_rows(Relation onerel, int elevel,
976976
char *filename;
977977
List *options;
978978
CopyState cstate;
979-
ErrorContextCallback errcontext;
979+
ErrorContextCallback errcallback;
980980
MemoryContext oldcontext = CurrentMemoryContext;
981981
MemoryContext tupcontext;
982982

@@ -1009,10 +1009,10 @@ file_acquire_sample_rows(Relation onerel, int elevel,
10091009
rstate = anl_init_selection_state(targrows);
10101010

10111011
/* Set up callback to identify error line number. */
1012-
errcontext.callback = CopyFromErrorCallback;
1013-
errcontext.arg = (void *) cstate;
1014-
errcontext.previous = error_context_stack;
1015-
error_context_stack = &errcontext;
1012+
errcallback.callback = CopyFromErrorCallback;
1013+
errcallback.arg = (void *) cstate;
1014+
errcallback.previous = error_context_stack;
1015+
error_context_stack = &errcallback;
10161016

10171017
*totalrows = 0;
10181018
*totaldeadrows = 0;
@@ -1072,7 +1072,7 @@ file_acquire_sample_rows(Relation onerel, int elevel,
10721072
}
10731073

10741074
/* Remove error callback. */
1075-
error_context_stack = errcontext.previous;
1075+
error_context_stack = errcallback.previous;
10761076

10771077
/* Clean up. */
10781078
MemoryContextDelete(tupcontext);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy