Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd092d11

Browse files
committed
Oops, have to rename local variables called 'errcontext' in contrib, too.
As pointed out by Alvaro.
1 parentdbdf967 commitd092d11

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
boolfound;
617-
ErrorContextCallbackerrcontext;
617+
ErrorContextCallbackerrcallback;
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
returnslot;
648648
}
@@ -976,7 +976,7 @@ file_acquire_sample_rows(Relation onerel, int elevel,
976976
char*filename;
977977
List*options;
978978
CopyStatecstate;
979-
ErrorContextCallbackerrcontext;
979+
ErrorContextCallbackerrcallback;
980980
MemoryContextoldcontext=CurrentMemoryContext;
981981
MemoryContexttupcontext;
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)

[8]ページ先頭

©2009-2025 Movatter.jp