mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
Fix for \dd on types.
This commit is contained in:
parent
002796b5ca
commit
7059464335
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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 " );
|
strcat(descbuf, " pg_type.oid = pg_description.objoid " );
|
||||||
if (!(res = PSQLexec(pset, descbuf)))
|
if (!(res = PSQLexec(pset, descbuf)))
|
||||||
return -1;
|
return -1;
|
||||||
|
else if (PQntuples(res) <= 0)
|
||||||
{
|
{
|
||||||
PQclear(res);
|
PQclear(res);
|
||||||
descbuf[0] = '\0';
|
descbuf[0] = '\0';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user