git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9b8e99e)
Fix example program in docs too (??)
2019年9月18日 19:50:20 +0000 (16:50 -0300)
2019年9月18日 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.


diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml
index 0a187e256a4cefd279e3fff60f3c6b44e9154b67..1189341ca15dbe4f572ade6221cfafee67f18d33 100644 (file)
--- 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', '\000001円002円003円004円');
+ * INSERT INTO test1 values (2, 'ho there', '\004003円002円001円000円');
*
* The expected output is:
*
diff --git a/src/test/examples/testlibpq3.c b/src/test/examples/testlibpq3.c
index efc3ed3eb0bb2d6a0470a5034a5e7992b8a66c54..dda45af859ab550b8c259d182a69c8d17ae4f3dd 100644 (file)
--- 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円');
This is the main PostgreSQL git repository.
RSS Atom

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