Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 59354cc

Browse files
committed
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.
1 parent 9b8e99e commit 59354cc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

doc/src/sgml/libpq.sgml

+3-2
Original file line numberDiff line numberDiff line change
@@ -8332,9 +8332,10 @@ main(int argc, char **argv)
83328332
*
83338333
* CREATE SCHEMA testlibpq3;
83348334
* SET search_path = testlibpq3;
8335+
* SET standard_conforming_strings = ON;
83358336
* CREATE TABLE test1 (i int4, t text, b bytea);
8336-
* INSERT INTO test1 values (1, 'joe''s place', '\\000\\001\\002\\003\\004');
8337-
* INSERT INTO test1 values (2, 'ho there', '\\004\\003\\002\\001\\000');
8337+
* INSERT INTO test1 values (1, 'joe''s place', '\000\001\002\003\004');
8338+
* INSERT INTO test1 values (2, 'ho there', '\004\003\002\001\000');
83388339
*
83398340
* The expected output is:
83408341
*

src/test/examples/testlibpq3.c

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
*
1111
* CREATE SCHEMA testlibpq3;
1212
* SET search_path = testlibpq3;
13+
* SET standard_conforming_strings = ON;
1314
* CREATE TABLE test1 (i int4, t text, b bytea);
1415
* INSERT INTO test1 values (1, 'joe''s place', '\000\001\002\003\004');
1516
* INSERT INTO test1 values (2, 'ho there', '\004\003\002\001\000');

0 commit comments

Comments
 (0)