1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-17 06:41:09 +03:00

Back-patch COPY WITH OIDS leak fix.

This commit is contained in:
Tom Lane
2000-06-28 06:13:01 +00:00
parent 97f41dabd3
commit d914334dd6

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.106.2.1 2000/06/05 11:13:55 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.106.2.2 2000/06/28 06:13:01 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -484,8 +484,10 @@ CopyTo(Relation rel, bool binary, bool oids, FILE *fp, char *delim, char *null_p
if (oids && !binary)
{
CopySendString(oidout(tuple->t_data->t_oid), fp);
string = oidout(tuple->t_data->t_oid);
CopySendString(string, fp);
CopySendChar(delim[0], fp);
pfree(string);
}
for (i = 0; i < attr_count; i++)