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

Commit 4857de6

Browse files
committed
Cleanup wrapping in \d commands.
1 parent a986b7b commit 4857de6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/bin/psql/psql.c

Lines changed: 5 additions & 5 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.114 1997/11/24 13:43:15 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.115 1997/11/24 14:05:02 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1717,23 +1717,23 @@ HandleSlashCmds(PsqlSettings *pset,
17171717
SELECT t.typname as return_type, \
17181718
p.proname as function, \
17191719
oid8types(p.proargtypes) as arguments, \
1720-
obj_description(p.oid) \
1720+
substr(obj_description(p.oid),1,23) \
17211721
FROM pg_proc p, pg_type t \
17221722
WHERE p.prorettype = t.oid and \
17231723
(pronargs = 0 or oid8types(p.proargtypes) != '') and \
17241724
t.typname != 'bool' \
17251725
ORDER BY return_type, function;",
17261726
false, false, 0);
17271727
SendQuery(&success, pset,"\
1728-
SELECT t.typname as return_type, \
1728+
SELECT t.typname as rets, \
17291729
p.proname as function, \
17301730
oid8types(p.proargtypes) as arguments, \
1731-
obj_description(p.oid) \
1731+
substr(obj_description(p.oid),1,34) \
17321732
FROM pg_proc p, pg_type t \
17331733
WHERE p.prorettype = t.oid and \
17341734
(pronargs = 0 or oid8types(p.proargtypes) != '') and \
17351735
t.typname = 'bool' \
1736-
ORDER BY return_type, function;",
1736+
ORDER BY rets, function;",
17371737
false, false, 0);
17381738
}
17391739
else if (strncmp(cmd, "di", 2) == 0)

0 commit comments

Comments
 (0)