Updatable cursor doubt

Поиск
Список
Период
Сортировка
От FAST PostgreSQL
Тема Updatable cursor doubt
Дата
Msg-id 46DCB86F.9070102@fast.fujitsu.com.au
обсуждение исходный текст
Ответы Re: Updatable cursor doubt  ("Heikki Linnakangas" <heikki@enterprisedb.com>)
Список pgsql-hackers
In CVS HEAD

workspace=# begin;
BEGIN
workspace=# declare cu cursor for select * from t1 for read only;
DECLARE CURSOR
workspace=# fetch cu; a
--- 1
(1 row)

workspace=# delete from t1 where current of cu;
DELETE 1
workspace=# commit;
COMMIT

Is this the intended behaviour? If so should we remove the 'READ ONLY' 
clause from the allowable syntax?

The documentation does not have 'READ ONLY' as part of the cursor syntax 
anymore.

Rgds,
Arul Shaji




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Per-function GUC settings: trickier than it looked
Следующее
От: "Ben Tilly"
Дата:
Сообщение: Re: Hash index todo list item