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

Commit50676b4

Browse files
committed
Fix for regprocout, use underscore, not parens.
1 parent0705b02 commit50676b4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎src/backend/utils/adt/regproc.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/regproc.c,v 1.22 1998/08/19 02:03:04 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/regproc.c,v 1.23 1998/08/31 07:35:44 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -48,9 +48,10 @@ regprocin(char *pro_oid_name)
4848
{
4949
/*
5050
* we need to use the oid because there can be multiple entries
51-
*with the same name, i.e.1323(int4eq)
51+
*with the same name, i.e.1323_int4eq
5252
*/
5353
proctup=SearchSysCacheTuple(PROOID,
54+
/* atoi stops at the _ */
5455
ObjectIdGetDatum(atoi(pro_oid_name)),
5556
0,0,0);
5657
if (HeapTupleIsValid(proctup))
@@ -130,7 +131,7 @@ regprocout(RegProcedure proid)
130131
char*s;
131132

132133
s= ((Form_pg_proc)GETSTRUCT(proctup))->proname.data;
133-
snprintf(result,NAMEDATALEN,"%d(%s)",proid,s);
134+
snprintf(result,NAMEDATALEN,"%d_%s",proid,s);
134135
}
135136
else
136137
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp