| От | Tom Lane |
|---|---|
| Тема | Re: LONG - Question on dealing w/ numerics |
| Дата | |
| Msg-id | 21507.1043830899@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: LONG - Question on dealing w/ numerics ("David Durst" <ddurst@larubber.com>) |
| Список | pgsql-sql |
"David Durst" <ddurst@larubber.com> writes:
> But I still think your point about the function selecting more than
> one line is valid.
> The problem is, the journal_line_id is not created until the insert
> occurs and there is no other unique ident than the journal_line_id.
Well, my standard answer to that would be "your WHERE clause should
select on a primary key (which could be multiple columns)".
We're pretty constrained in changing the semantics of plpgsql, because
the raison d' etre of that language is to emulate Oracle's (TM) PL/SQL
(TM), warts and all.
(Now, if you can show us that PL/SQL behaves differently in that
situation, we'll definitely be willing to change plpgsql.)
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера