From: | Devrim GUNDUZ <devrim(at)gunduz(dot)org> |
---|---|
To: | "Hicham G(dot) Elmongui" <elmongui(at)cs(dot)purdue(dot)edu> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: code in docs gives me an error |
Date: | 2004-10-19 15:26:10 |
Message-ID: | Pine.LNX.4.61.0410191822390.4786@emo.org.tr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
On Tue, 19 Oct 2004, Hicham G. Elmongui wrote:
> I tried creating the function (from sec 19.3.1). But it gives me the
> following error: "ERROR: type tablename does not exist".
> Any ideas of what i might be doing wrong?
You have to write the data type while defining the function parameters.
For example,
CREATE FUNCTION use_many_fields(varchar) RETURNS TEXT AS '
...and then declare it as you've done below:
> DECLARE
> in_t ALIAS FOR $1;
Regards,
- --
Devrim GUNDUZ
devrim~gunduz.org devrim.gunduz~linux.org.tr
http://www.tdmsoft.com
http://www.gunduz.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQFBdTIVtl86P3SPfQ4RAj5vAKC2ugU2wcXHDgMMybyMqm14L4+9UwCfUd7m
7WQxt0yl0PHuezSucptNLtE=
=Z94K
-----END PGP SIGNATURE-----
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-10-19 15:32:46 | Re: code in docs gives me an error |
Previous Message | Eric E | 2004-10-19 15:19:05 | Sequence question |