From 59354ccef5d7671bb11982628d6ddd6fffbad2c4 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Wed, 18 Sep 2019 16:50:20 -0300 Subject: 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. --- doc/src/sgml/libpq.sgml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'doc/src/sgml/libpq.sgml') 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: * -- cgit v1.2.3