diff options
author | Bruce Momjian <bruce@momjian.us> | 1997-11-30 17:46:01 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1997-11-30 17:46:01 +0000 |
commit | 7059464335fb6183a4bf9c5d798bcc36739eaf4d (patch) | |
tree | 1d4f608912653931b7b773ad08db6dec34cd9f29 /src/bin/psql/psql.c | |
parent | 002796b5ca9c727526ed5231d90f2a7b6b6cf4a9 (diff) | |
download | postgresql-7059464335fb6183a4bf9c5d798bcc36739eaf4d.tar.gz postgresql-7059464335fb6183a4bf9c5d798bcc36739eaf4d.zip |
Fix for \dd on types.
Diffstat (limited to 'src/bin/psql/psql.c')
-rw-r--r-- | src/bin/psql/psql.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/psql/psql.c b/src/bin/psql/psql.c index 4aa6cea2450..ed2b46e2682 100644 --- a/src/bin/psql/psql.c +++ b/src/bin/psql/psql.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.117 1997/11/26 02:34:28 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.118 1997/11/30 17:46:01 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -757,6 +757,7 @@ objectDescription(PsqlSettings *pset, char *object, FILE *fout) strcat(descbuf, " pg_type.oid = pg_description.objoid " ); if (!(res = PSQLexec(pset, descbuf))) return -1; + else if (PQntuples(res) <= 0) { PQclear(res); descbuf[0] = '\0'; |