Mistake in statement example

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: marlene(dot)brandstaetter(at)cargonet(dot)software
Subject: Mistake in statement example
Date: 2023-03-01 07:21:30
Message-ID: 167765529052.987840.12345375075704447735@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/15/transaction-iso.html
Description:

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.

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Tom Lane 2023-03-01 16:34:11 Re: Mistake in statement example
Previous Message Michael Paquier 2023-02-28 09:04:19 Re: incorrect info in dblink examples