exception question ....

Поиск
Список
Период
Сортировка
От madhtr
Тема exception question ....
Дата
Msg-id 009f01c79af5$69920230$6401a8c0@useronewin2klt
обсуждение исходный текст
Ответ на Data replication through disk replication  (Thomas Lopatic <thomas@lopatic.de>)
Ответы Re: exception question ....  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
sry, one more question ...

I want to trap an exception and return a -1 no matter WHAT it is ... what do
i need to replace <anything> with?

>>>>>>
create or replace function clrsplit(int4) returns unknown as
$$
BEGIN
delete from split where tkid=$1;
EXCEPTION
 WHEN <anything>
  return -1;
update tk set dtchksp=null where nid=$1;
return 0;
END
$$ language plpgsql;



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

Предыдущее
От: "madhtr"
Дата:
Сообщение: Hex numbers in psql
Следующее
От: Ben
Дата:
Сообщение: Re: Data replication through disk replication