PREPARED STATEMENT

From: NosyMan <nosyman(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: PREPARED STATEMENT
Date: 2004-12-11 12:30:30
Message-ID: 200412111230.30483.nosyman@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi there,

I want to know that is a posibillity to test if a statement is prepared in
PL/PgSQL.

I have create a function:
.........
PREPARE PSTAT_SAVE_record(INTEGER, INTEGER, DATE, VARCHAR) AS INSERT INTO
table VALUES($1, $2, $3, $4);
.........

When I try to execute it second time I got an error: prepared statement
'PSTAT_SAVE_record' already exists. How can I avoid this error? is there a
posibillity to test if a statement was prepared before?

Thanks,
Nosy

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Vitaly Belman 2004-12-11 12:42:21 Checking inequality
Previous Message Shridhar Daithankar 2004-12-11 10:58:18 Re: Install pgsql directory