Commit 529a24a2 authored by Tom Lane's avatar Tom Lane

Remove some unnecessary conversion work in build_regtype_array().

parent 2b8758a3
......@@ -10,7 +10,7 @@
* Copyright (c) 2002-2007, PostgreSQL Global Development Group
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/prepare.c,v 1.67 2007/01/05 22:19:26 momjian Exp $
* $PostgreSQL: pgsql/src/backend/commands/prepare.c,v 1.68 2007/01/28 19:05:35 tgl Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -781,12 +781,7 @@ build_regtype_array(List *oid_list)
i = 0;
foreach(lc, oid_list)
{
Oid oid;
Datum oid_str;
oid = lfirst_oid(lc);
oid_str = DirectFunctionCall1(oidout, ObjectIdGetDatum(oid));
tmp_ary[i++] = DirectFunctionCall1(regtypein, oid_str);
tmp_ary[i++] = ObjectIdGetDatum(lfirst_oid(lc));
}
/* XXX: this hardcodes assumptions about the regtype type */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment