From 59354ccef5d7671bb11982628d6ddd6fffbad2c4 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: 2019年9月18日 16:50:20 -0300 Subject: [PATCH] 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 +++-- src/test/examples/testlibpq3.c | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) 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円'); -- 2.39.5

AltStyle によって変換されたページ (->オリジナル) /