|
3 | 3 | *
|
4 | 4 | * Copyright 2000-2002 by PostgreSQL Global Development Group
|
5 | 5 | *
|
6 |
| - * $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.59 2002/08/1003:56:24 tgl Exp $ |
| 6 | + * $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.60 2002/08/1016:01:16 tgl Exp $ |
7 | 7 | */
|
8 | 8 | #include"postgres_fe.h"
|
9 | 9 | #include"describe.h"
|
@@ -714,11 +714,7 @@ describeOneTableDetails(const char *schemaname,
|
714 | 714 | printfPQExpBuffer(&buf,"SELECT pg_catalog.pg_get_viewdef('%s'::pg_catalog.oid)",oid);
|
715 | 715 | result=PSQLexec(buf.data);
|
716 | 716 | if (!result)
|
717 |
| -{ |
718 |
| -PQclear(res); |
719 |
| -PQclear(result); |
720 | 717 | gotoerror_return;
|
721 |
| -} |
722 | 718 |
|
723 | 719 | if (PQntuples(result)>0)
|
724 | 720 | view_def=xstrdup(PQgetvalue(result,0,0));
|
|