Commit 8a47b775 authored by Andrew Gierth's avatar Andrew Gierth

doc: restore intentional typo

Commit ac862376 "fixed" a typo in an example of what would happen in
the event of a typo. Restore the original typo and add a comment about
its intentionality. Backpatch to 12 where the error was introduced.

Per report from irc user Nicolás Alvarez.
parent 20fbb711
...@@ -811,7 +811,7 @@ BEGIN; ...@@ -811,7 +811,7 @@ BEGIN;
INSERT INTO mytable VALUES(1); INSERT INTO mytable VALUES(1);
COMMIT; COMMIT;
INSERT INTO mytable VALUES(2); INSERT INTO mytable VALUES(2);
SELECT 1/0; SELCT 1/0;<!-- this typo is intentional -->
</programlisting> </programlisting>
then none of the statements would get run, resulting in the visible then none of the statements would get run, resulting in the visible
difference that the first <command>INSERT</command> is not committed. difference that the first <command>INSERT</command> is not committed.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment