| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Darcy Buskermolen <darcy(at)wavefire(dot)com> |
| Cc: | pgsql-bugs(at)postgresql(dot)org |
| Subject: | Re: ERROR: invalid INTERVAL typmod: 0xc |
| Date: | 2004-01-28 22:50:55 |
| Message-ID: | 7356.1075330255@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
Darcy Buskermolen <darcy(at)wavefire(dot)com> writes:
> The following query works in 7.3 but errors in 7.4.x as well as devel with
> the above error
> SELECT quote_ident(nspname) as namespace, format_type(pg_type.oid, typlen) as
> type_name FROM pg_catalog.pg_type JOIN pg_catalog.pg_namespace ON
> (pg_namespace.oid = typnamespace) WHERE pg_type.oid = '1186';
It's mere chance if it worked in 7.3. The second argument of
format_type is supposed to be atttypmod, not typlen. In this case
it seems you don't have any particular typmod available, so pass
NULL (or -1).
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jeffrey Quinn | 2004-01-28 23:54:48 | initdb: directory not empty issue |
| Previous Message | Darcy Buskermolen | 2004-01-28 21:28:21 | ERROR: invalid INTERVAL typmod: 0xc |