Re: Mistake in statement example

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Mistake in statement example
Дата
Msg-id 1522262.1677688451@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Mistake in statement example  (PG Doc comments form <noreply@postgresql.org>)
Ответы Re: Mistake in statement example  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-docs
PG Doc comments form <noreply@postgresql.org> writes:
> I believe there is a mistake in an example on
> https://www.postgresql.org/docs/current/transaction-iso.html section
> 13.2.1:
> BEGIN;
> UPDATE accounts SET balance = balance + 100.00 WHERE acctnum = 12345;
> UPDATE accounts SET balance = balance - 100.00 WHERE acctnum = 7534;
> COMMIT;

> The acctnum is expected to be 12345 in both cases.

No, I think that's intentional: the example depicts transferring
$100 from account 7534 to account 12345.

            regards, tom lane



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

Предыдущее
От: PG Doc comments form
Дата:
Сообщение: Mistake in statement example
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Mistake in statement example