Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit529a24a

Browse files
committed
Remove some unnecessary conversion work in build_regtype_array().
1 parent2b8758a commit529a24a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

‎src/backend/commands/prepare.c

Lines changed: 2 additions & 7 deletions
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/2819: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-
Oidoid;
785-
Datumoid_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)

[8]ページ先頭

©2009-2025 Movatter.jp