Fix example program in docs too (??)
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 18 Sep 2019 19:50:20 +0000 (16:50 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 18 Sep 2019 19:54:11 +0000 (16:54 -0300)
Fixup for previous commit: actually, the complete source for
testlibpq3.c appears in SGML docs, so we need to patch that also.
Go figure.

doc/src/sgml/libpq.sgml
src/test/examples/testlibpq3.c

index 0a187e256a4cefd279e3fff60f3c6b44e9154b67..1189341ca15dbe4f572ade6221cfafee67f18d33 100644 (file)
@@ -8332,9 +8332,10 @@ main(int argc, char **argv)
  *
  * CREATE SCHEMA testlibpq3;
  * SET search_path = testlibpq3;
+ * SET standard_conforming_strings = ON;
  * CREATE TABLE test1 (i int4, t text, b bytea);
- * INSERT INTO test1 values (1, 'joe''s place', '\\000\\001\\002\\003\\004');
- * INSERT INTO test1 values (2, 'ho there', '\\004\\003\\002\\001\\000');
+ * INSERT INTO test1 values (1, 'joe''s place', '\000\001\002\003\004');
+ * INSERT INTO test1 values (2, 'ho there', '\004\003\002\001\000');
  *
  * The expected output is:
  *
index efc3ed3eb0bb2d6a0470a5034a5e7992b8a66c54..dda45af859ab550b8c259d182a69c8d17ae4f3dd 100644 (file)
@@ -10,6 +10,7 @@
  *
  * CREATE SCHEMA testlibpq3;
  * SET search_path = testlibpq3;
+ * SET standard_conforming_strings = ON;
  * CREATE TABLE test1 (i int4, t text, b bytea);
  * INSERT INTO test1 values (1, 'joe''s place', '\000\001\002\003\004');
  * INSERT INTO test1 values (2, 'ho there', '\004\003\002\001\000');