|
7 | 7 | * |
8 | 8 | * |
9 | 9 | * 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 $ |
11 | 11 | * |
12 | 12 | *------------------------------------------------------------------------- |
13 | 13 | */ |
@@ -48,9 +48,10 @@ regprocin(char *pro_oid_name) |
48 | 48 | { |
49 | 49 | /* |
50 | 50 | * 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 |
52 | 52 | */ |
53 | 53 | proctup=SearchSysCacheTuple(PROOID, |
| 54 | +/* atoi stops at the _ */ |
54 | 55 | ObjectIdGetDatum(atoi(pro_oid_name)), |
55 | 56 | 0,0,0); |
56 | 57 | if (HeapTupleIsValid(proctup)) |
@@ -130,7 +131,7 @@ regprocout(RegProcedure proid) |
130 | 131 | char*s; |
131 | 132 |
|
132 | 133 | s= ((Form_pg_proc)GETSTRUCT(proctup))->proname.data; |
133 | | -snprintf(result,NAMEDATALEN,"%d(%s)",proid,s); |
| 134 | +snprintf(result,NAMEDATALEN,"%d_%s",proid,s); |
134 | 135 | } |
135 | 136 | else |
136 | 137 | { |
|