Rollback & Nextval fails

Поиск
Список
Период
Сортировка
От Eriksson, Fredrik
Тема Rollback & Nextval fails
Дата
Msg-id 890BFCE1028AD211833700A0C9F2770C27E0B1@dns-155-111.dhcp.nai.com
обсуждение исходный текст
Список pgsql-sql
I have been trying the following SQL code :

BEGIN;
INSERT INTO table VALUES ( NEXTVAL('serial'), 'Data' );
ROLLBACK;

And the insert function is rolled back but the serial sequence isn't. Hav I
misunderstood the functionality of rollback or is this a bug? Is there
someway to get the functionality that rollsback everything?

Cheers,

Fredrik


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

Предыдущее
От: Carolyn Wong
Дата:
Сообщение: date format
Следующее
От: "Gerhard Dieringer"
Дата:
Сообщение: Antw: Rollback & Nextval fails