| From: | Devrim GUNDUZ <devrim(at)oper(dot)metu(dot)edu(dot)tr> |
|---|---|
| To: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
| Cc: | PostgreSQL Mailing Lists-General <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: About functions |
| Date: | 2002-02-25 08:51:18 |
| Message-ID: | Pine.LNX.4.44.0202251049320.11548-100000@oper.metu.edu.tr |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hi,
On Sun, 24 Feb 2002, Stephan Szabo wrote:
>
> You can't use the argument as a parameter directly in that sql statement.
> You might be able to do:
> EXECUTE ''DROP FUNCTION '' || $1;
Thanks but, again an error:
test=# CREATE FUNCTION dropfunc(text) RETURNS integer AS '
test'# BEGIN;
test'# EXECUTE ''DROP FUNCTION'' $1;
test'# SELECT 1;
test'# END;
test'# '
test-# LANGUAGE SQL;
ERROR: parser: parse error at or near "EXECUTE"
test=#
Let me dive into my manuals :)
Regards
--
Devrim GUNDUZ
devrim(at)oper(dot)metu(dot)edu(dot)tr
devrim(dot)gunduz(at)linux(dot)org(dot)tr
devrimg(at)tr(dot)net
Web : http://devrim.oper.metu.edu.tr
------------------------------------------------------------------
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Lincoln Yeoh | 2002-02-25 09:01:09 | Re: Need to vacuum multiple times for effectiveness? |
| Previous Message | TPCCUVA | 2002-02-25 08:48:53 | Embedded SQL: foreign keys. |