diff --git a/src/test/examples/testlibpq3.c b/src/test/examples/testlibpq3.c index c3b524cfdfb..efc3ed3eb0b 100644 --- a/src/test/examples/testlibpq3.c +++ b/src/test/examples/testlibpq3.c @@ -11,8 +11,8 @@ * CREATE SCHEMA testlibpq3; * SET search_path = testlibpq3; * 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.sql b/src/test/examples/testlibpq3.sql index 22133065099..35a95ca347b 100644 --- a/src/test/examples/testlibpq3.sql +++ b/src/test/examples/testlibpq3.sql @@ -1,5 +1,6 @@ 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');