From 0ac6298bb8ac11690cf3d4ad2537b4261ce93ab0 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 9 May 2003 18:08:48 +0000 Subject: Implement new-protocol binary I/O support in DataRow, Bind, and FunctionCall messages. Binary I/O is now up and working, but only for a small set of datatypes (integers, text, bytea). --- src/backend/commands/copy.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/backend/commands') diff --git a/src/backend/commands/copy.c b/src/backend/commands/copy.c index 93d4b8406e..06c29c4894 100644 --- a/src/backend/commands/copy.c +++ b/src/backend/commands/copy.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.198 2003/05/08 18:16:36 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.199 2003/05/09 18:08:48 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -828,11 +828,9 @@ CopyTo(Relation rel, List *attnumlist, bool binary, bool oids, int attnum = lfirsti(cur); Oid out_func_oid; - if (!getTypeOutputInfo(attr[attnum - 1]->atttypid, - &out_func_oid, &elements[attnum - 1], - &isvarlena[attnum - 1])) - elog(ERROR, "COPY: couldn't lookup info for type %u", - attr[attnum - 1]->atttypid); + getTypeOutputInfo(attr[attnum - 1]->atttypid, + &out_func_oid, &elements[attnum - 1], + &isvarlena[attnum - 1]); fmgr_info(out_func_oid, &out_functions[attnum - 1]); if (binary && attr[attnum - 1]->attlen == -2) elog(ERROR, "COPY BINARY: cstring not supported"); -- cgit v1.2.3