|
3 | 3 | * |
4 | 4 | * Copyright (c) 2000-2007, PostgreSQL Global Development Group |
5 | 5 | * |
6 | | - * $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.151 2007/02/14 01:58:58 tgl Exp $ |
| 6 | + * $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.152 2007/02/20 10:23:38 petere Exp $ |
7 | 7 | */ |
8 | 8 | #include"postgres_fe.h" |
9 | 9 | #include"describe.h" |
@@ -1188,7 +1188,7 @@ describeOneTableDetails(const char *schemaname, |
1188 | 1188 | } |
1189 | 1189 |
|
1190 | 1190 | /* count inherited tables */ |
1191 | | -printfPQExpBuffer(&buf,"SELECT c.relname FROM pg_catalog.pg_class c, pg_catalog.pg_inherits i WHERE c.oid=i.inhparent AND i.inhrelid = '%s' ORDER BY inhseqno ASC",oid); |
| 1191 | +printfPQExpBuffer(&buf,"SELECT c.oid::regclass FROM pg_catalog.pg_class c, pg_catalog.pg_inherits i WHERE c.oid=i.inhparent AND i.inhrelid = '%s' ORDER BY inhseqno ASC",oid); |
1192 | 1192 |
|
1193 | 1193 | result6=PSQLexec(buf.data, false); |
1194 | 1194 | if (!result6) |
|