diff options
author | Shigeru Hanada | 2011-02-17 08:22:21 +0000 |
---|---|---|
committer | Shigeru Hanada | 2011-02-17 08:22:21 +0000 |
commit | 2126312e34572682590822d65f8ba4a06391bef1 (patch) | |
tree | 77ba99ebb2757a275160e531e26cee0be09184d3 | |
parent | 14d78946d9befd9920fa398c6751fd51ae55652d (diff) |
Follow addition of NextCopyFrom()'s parameter.
-rw-r--r-- | contrib/file_fdw/file_fdw.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/contrib/file_fdw/file_fdw.c b/contrib/file_fdw/file_fdw.c index 410b0a9ec2..ddc91603b4 100644 --- a/contrib/file_fdw/file_fdw.c +++ b/contrib/file_fdw/file_fdw.c @@ -436,10 +436,16 @@ fileIterate(FdwExecutionState *festate, TupleTableSlot *slot) * If next tuple has been found, store it into the slot as materialized * tuple. Otherwise, clear the slot to tell executor that we have reached * EOF. + * + * We pass NULL as ExprContext for evaluating default expression because we + * read all of data from file. + * + * We also pass NULL as tupleOid because we don't support tuple oid for + * foreign tables. */ ExecClearTuple(slot); - found = NextCopyFrom(fdw_private->cstate, slot->tts_values, slot->tts_isnull, - NULL); + found = NextCopyFrom(fdw_private->cstate, NULL, slot->tts_values, + slot->tts_isnull, NULL); if (found) ExecStoreVirtualTuple(slot); |