Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
doc: restore intentional typo
authorAndrew Gierth <rhodiumtoad@postgresql.org>
Sat, 11 Apr 2020 07:04:57 +0000 (08:04 +0100)
committerAndrew Gierth <rhodiumtoad@postgresql.org>
Sat, 11 Apr 2020 07:11:06 +0000 (08:11 +0100)
Commit ac8623760 "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.

doc/src/sgml/protocol.sgml

index 8d8051b87ead0842a727bff5e2d4f18e11e74687..15e841548239d1726e4986090606541647db4c9b 100644 (file)
@@ -811,7 +811,7 @@ BEGIN;
 INSERT INTO mytable VALUES(1);
 COMMIT;
 INSERT INTO mytable VALUES(2);
-SELECT 1/0;
+SELCT 1/0;<!-- this typo is intentional -->
 </programlisting>
      then none of the statements would get run, resulting in the visible
      difference that the first <command>INSERT</command> is not committed.