| От | Tom Lane |
|---|---|
| Тема | Re: View INSERTs not returning OID in Postgres 7.2.1 |
| Дата | |
| Msg-id | 25094.1018491007@sss.pgh.pa.us обсуждение |
| Ответ на | View INSERTs not returning OID in Postgres 7.2.1 (Damon Cokenias <lists@mtn-palace.com>) |
| Список | pgsql-general |
Damon Cokenias <lists@mtn-palace.com> writes:
> I recently moved from 7.1.3 to 7.2.1. In doing so, my application
> broke. It relies on INSERT returning the OID of the inserted row,
> even if the INSERT was on a view.
I'm afraid you were relying on a coincidental artifact of the old
implementation, namely that you got back the command tag associated
with the last command to be physically executed. The current code
is careful to return the command tag associated with the original
query (here, the insert into shadview) regardless of execution order
of additional queries executed by rules. I'm not sure that we can fix
your problem without breaking other cases.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера