PREPARED STATEMENT

Поиск
Список
Период
Сортировка
От NosyMan
Тема PREPARED STATEMENT
Дата
Msg-id 200412111247.09108.nosyman@gmail.com
обсуждение исходный текст
Список pgsql-sql
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


В списке pgsql-sql по дате отправления:

Предыдущее
От: Steve Crawford
Дата:
Сообщение: Re: Cast NULL into Timestamp?
Следующее
От: Joe Conway
Дата:
Сообщение: Re: Create Calendar