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

Commit390d5e9

Browse files
committed
regprocin should accept '-' signifying InvalidOid, for
symmetry with regprocout.
1 parente6bf7b4 commit390d5e9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 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.34 1999/02/13 23:19:31 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/regproc.c,v 1.35 1999/02/15 16:29:32 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -36,7 +36,7 @@
3636
/*
3737
*regprocin- converts "proname" or "proid" to proid
3838
*
39-
*proid ofNULL signifies unknown
39+
*proid of'-' signifies unknown, for consistency with regprocout
4040
*/
4141
int32
4242
regprocin(char*pro_name_or_oid)
@@ -47,6 +47,8 @@ regprocin(char *pro_name_or_oid)
4747

4848
if (pro_name_or_oid==NULL)
4949
returnInvalidOid;
50+
if (pro_name_or_oid[0]=='-'&&pro_name_or_oid[1]=='\0')
51+
returnInvalidOid;
5052

5153
if (!IsBootstrapProcessingMode())
5254
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp