Fix compilation warning in test_copy_callbacks
authorMichael Paquier <[email protected]>
Tue, 11 Oct 2022 23:45:01 +0000 (08:45 +0900)
committerMichael Paquier <[email protected]>
Tue, 11 Oct 2022 23:45:01 +0000 (08:45 +0900)
A passed-in parameter value was incorrect, for a warning coming from
MSVC.

Oversight in 9fcdf2c.

Reported-by: Andres Freund
Discussion: https://postgr.es/m/20221011224221[email protected]

src/test/modules/test_copy_callbacks/test_copy_callbacks.c

index ecdbe4eee1b95f166a82f48dbc627b657a889440..4a7c888dcdec540fe56fcbd62b21595d5ca82bc7 100644 (file)
@@ -37,7 +37,7 @@ test_copy_to_callback(PG_FUNCTION_ARGS)
    CopyToState cstate;
    int64       processed;
 
-   cstate = BeginCopyTo(NULL, rel, NULL, RelationGetRelid(rel), NULL, NULL,
+   cstate = BeginCopyTo(NULL, rel, NULL, RelationGetRelid(rel), NULL, false,
                         to_cb, NIL, NIL);
    processed = DoCopyTo(cstate);
    EndCopyTo(cstate);