Follow addition of NextCopyFrom()'s parameter.
authorShigeru Hanada <[email protected]>
Thu, 17 Feb 2011 08:22:21 +0000 (17:22 +0900)
committerShigeru Hanada <[email protected]>
Thu, 17 Feb 2011 08:22:21 +0000 (17:22 +0900)
contrib/file_fdw/file_fdw.c

index 410b0a9ec2a24a998e028d75b0e97cb870a315e0..ddc91603b4a1dc4ad22430553d36ea57b1bb4b82 100644 (file)
@@ -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);