From: | "Jim Wilson" <jimw(at)kelcomaine(dot)com> |
---|---|
To: | "Lee Harr" <missive(at)hotmail(dot)com>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: pl/pgsql docs 37.4.3. Row Types -- how do I use this |
Date: | 2004-01-24 18:33:36 |
Message-ID: | twig.1074969216.8270@kelcomaine.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Lee Harr <missive(at)hotmail(dot)com> said:
> >Unless your function parameter is an integer you must quote it... eq:
> >
> >select use_two_tables('tablename');
> >
>
> Hrm... That does not work either:
>
> # select use_two_tables('tablename');
> ERROR: function use_two_tables("unknown") does not exist
> HINT: No function matches the given name and argument types. You may need
> to add explicit type casts.
> # select use_two_tables('tablename'::text);
> ERROR: function use_two_tables(text) does not exist
> HINT: No function matches the given name and argument types. You may need
> to add explicit type casts.
Why not just use a text type in your definition?
CREATE or REPLACE FUNCTION use_two_tables(text) RETURNS text AS ...
You can always do a cast inside the procedure if you need to.
Best regards,
Jim Wilson
From | Date | Subject | |
---|---|---|---|
Next Message | Lee Harr | 2004-01-24 19:20:16 | Re: pl/pgsql docs 37.4.3. Row Types -- how do I use this |
Previous Message | Lee Harr | 2004-01-24 18:14:23 | Re: pl/pgsql docs 37.4.3. Row Types -- how do I use this |