OSDN Git Service

Fix an uninitialized field in DR_copy.
authorItagaki Takahiro <itagaki.takahiro@gmail.com>
Fri, 18 Feb 2011 05:29:40 +0000 (14:29 +0900)
committerItagaki Takahiro <itagaki.takahiro@gmail.com>
Fri, 18 Feb 2011 05:32:19 +0000 (14:32 +0900)
Shigeru HANADA

src/backend/commands/copy.c

index 9f7263d..2c06d80 100644 (file)
@@ -3798,6 +3798,7 @@ CreateCopyDestReceiver(void)
        self->pub.mydest = DestCopyOut;
 
        self->cstate = NULL;            /* will be set later */
+       self->processed = 0;
 
        return (DestReceiver *) self;
 }