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

Commit 97ad0b1

Browse files
committed
\dd fix.
1 parent 43c7114 commit 97ad0b1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bin/psql/psql.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.116 1997/11/24 14:15:11 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.117 1997/11/26 02:34:28 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -777,7 +777,8 @@ objectDescription(PsqlSettings *pset, char *object, FILE *fout)
777777
strcat(descbuf, "WHERE pg_operator.oprname = '");
778778
strcat(descbuf, object);
779779
strcat(descbuf, "'" );
780-
strcat(descbuf, " and pg_operator.oid = pg_description.objoid " );
780+
/* operator descriptions are attached to the proc */
781+
strcat(descbuf, " and RegprocToOid(pg_operator.oprcode) = pg_description.objoid " );
781782
if (!(res = PSQLexec(pset, descbuf)))
782783
return -1;
783784
else if (PQntuples(res) <= 0)

0 commit comments

Comments
 (0)