dbTalk Databases Forums  

Re: [BUGS] ERROR: invalid INTERVAL typmod: 0xc

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss Re: [BUGS] ERROR: invalid INTERVAL typmod: 0xc in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] ERROR: invalid INTERVAL typmod: 0xc - 01-28-2004 , 04:53 PM






Darcy Buskermolen <darcy (AT) wavefire (DOT) com> writes:
Quote:
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

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.