Search Postgresql Archives

Re: CAST function for user defined type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 22, 2007 at 09:44:52AM -0500, Ron Peterson wrote:
> I've created my own type: y_octet_16.  Now I'm trying to create a CAST
> function for this type, but I'm not quite getting it.

Quick question: do you mean:

>   val
>     y_octet_16
      ^^^^^^^^^^
> VALUES
>   ( 'aaa', encode( y_uuid_generate(), 'hex' )::y_byte_16 );
or                                               ^^^^^^^^^

I'm not sure from your example of the difference? byte vs octet.

Have a nice day,
-- 
Martijn van Oosterhout   <kleptog@xxxxxxxxx>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment: signature.asc
Description: Digital signature


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux