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(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.