Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 529a24a

Browse files
committed
Remove some unnecessary conversion work in build_regtype_array().
1 parent 2b8758a commit 529a24a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/backend/commands/prepare.c

+2-7
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Copyright (c) 2002-2007, PostgreSQL Global Development Group
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/commands/prepare.c,v 1.67 2007/01/05 22:19:26 momjian Exp $
13+
* $PostgreSQL: pgsql/src/backend/commands/prepare.c,v 1.68 2007/01/28 19:05:35 tgl Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -781,12 +781,7 @@ build_regtype_array(List *oid_list)
781781
i = 0;
782782
foreach(lc, oid_list)
783783
{
784-
Oid oid;
785-
Datum oid_str;
786-
787-
oid = lfirst_oid(lc);
788-
oid_str = DirectFunctionCall1(oidout, ObjectIdGetDatum(oid));
789-
tmp_ary[i++] = DirectFunctionCall1(regtypein, oid_str);
784+
tmp_ary[i++] = ObjectIdGetDatum(lfirst_oid(lc));
790785
}
791786

792787
/* XXX: this hardcodes assumptions about the regtype type */

0 commit comments

Comments
 (0)