From: Alvaro Herrera Date: Wed, 18 Sep 2019 19:50:20 +0000 (-0300) Subject: Fix example program in docs too (??) X-Git-Tag: REL_13_BETA1~1475 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=59354ccef5d7671bb11982628d6ddd6fffbad2c4;p=thirdparty%2Fpostgresql.git Fix example program in docs too (??) Fixup for previous commit: actually, the complete source for testlibpq3.c appears in SGML docs, so we need to patch that also. Go figure. --- diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 0a187e256a4..1189341ca15 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -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: * diff --git a/src/test/examples/testlibpq3.c b/src/test/examples/testlibpq3.c index efc3ed3eb0b..dda45af859a 100644 --- a/src/test/examples/testlibpq3.c +++ b/src/test/examples/testlibpq3.c @@ -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');