Re: Function proposal to find the type of a datum - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: Function proposal to find the type of a datum
Date
Msg-id BAY114-F24EB8FCA34F4BC482871B9F99B0@phx.gbl
Whole thread Raw
In response to Function proposal to find the type of a datum  (Kate F <kate@cats.meow.at>)
Responses Re: Function proposal to find the type of a datum
List pgsql-hackers
Hello,

you can identify type via operator OF.

like:
 IF a IS OF INTEGER THEN   RAISE NOTICE 'Parametr a is numeric'; ELSIF a IS OF varchar THEN   RAISE NOTICE 'Parametr a
isstring'; END IF;
 

Regards
Pavel Stehule

_________________________________________________________________
Citite se osamele? Poznejte nekoho vyjmecneho diky Match.com. 
http://www.msn.cz/



pgsql-hackers by date:

Previous
From: Jeremy Drake
Date:
Subject: Re: writing new regexp functions
Next
From: David Fetter
Date:
Subject: Re: writing new regexp functions