Re: Mistake in statement example - Mailing list pgsql-docs

From Tom Lane
Subject Re: Mistake in statement example
Date
Msg-id 1522262.1677688451@sss.pgh.pa.us
Whole thread Raw
In response to Mistake in statement example  (PG Doc comments form <noreply@postgresql.org>)
Responses Re: Mistake in statement example  ("David G. Johnston" <david.g.johnston@gmail.com>)
List 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 by date:

Previous
From: PG Doc comments form
Date:
Subject: Mistake in statement example
Next
From: "David G. Johnston"
Date:
Subject: Re: Mistake in statement example