About functions - Mailing list pgsql-general

From Devrim GUNDUZ
Subject About functions
Date
Msg-id Pine.LNX.4.44.0202242154250.7909-100000@oper.metu.edu.tr
Whole thread Raw
Responses Re: About functions  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List pgsql-general
Hi,

While working on functions, I had a problem:

I wanted to write a function whict would drop my function. It is simply as
below:


    CREATE FUNCTION dropfunc(text) RETURNS integer AS '
            DROP FUNCTION $1 ;
            SELECT 1;
    '
    LANGUAGE SQL;


But PostgreSQL answers:

test=# ERROR:  parser: parse error at or near "$1"


What is the error in here?

Regards and best wishes,


Devrim GUNDUZ

devrim@oper.metu.edu.tr
devrim.gunduz@linux.org.tr
devrimg@tr.net

Web : http://devrim.oper.metu.edu.tr
------------------------------------------------------------------




pgsql-general by date:

Previous
From: Rich Shepard
Date:
Subject: Re: Starting Postmaster
Next
From: "Robert Treat"
Date:
Subject: tcpip_socket vs -i