On Tue, May 16, 2006 at 10:53:10AM -0700, Don Y wrote:
> But what *binds* my C declaration to the corresponding SQL
> "CREATE CAST"?
>
> E.g.,
>
> CREATE FUNCTION foo_from_baz(baz)
> RETURNS foo
> AS '...'
> LANGUAGE 'C' IMMUTABLE STRICT;
Your create functions would look like:
CREATE FUNCTION f
Martijn van Oosterhout wrote:
On Tue, May 16, 2006 at 10:29:27AM -0700, Don Y wrote:
Given a user defined type foo...
I've created several casts to/from foo and built-in types.
I had adopted a naming convention of:
baz foo_to_baz(foo);
foo foo_from_baz(baz);
But:
I don't see how I can
On Tue, May 16, 2006 at 10:29:27AM -0700, Don Y wrote:
> Given a user defined type foo...
> I've created several casts to/from foo and built-in types.
> I had adopted a naming convention of:
> baz foo_to_baz(foo);
> foo foo_from_baz(baz);
>
> But:
> I don't see how I can do this in my decla
Given a user defined type foo...
I've created several casts to/from foo and built-in types.
I had adopted a naming convention of:
baz foo_to_baz(foo);
foo foo_from_baz(baz);
But:
...it is recommended that you continue to follow this old
convention of naming cast implementation functions