Content-Length: 289892 | pFad | http://github.com/postgrespro/postgres/commit/9b8e99e905097e104c295bff1c47b6c0d652efdb

3B Fix testlibpq3 · postgrespro/postgres@9b8e99e · GitHub
Skip to content

Commit 9b8e99e

Browse files
committed
Fix testlibpq3
The sample output assumes non-standard-conforming interpretation of backslashes in input literals, so the actual output didn't match. Noticed while perusing another patch that touches this file. Evidently this code is seldom checked, so I'm not going to bother backpatching this fix.
1 parent 32200c1 commit 9b8e99e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/test/examples/testlibpq3.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
* CREATE SCHEMA testlibpq3;
1212
* SET search_path = testlibpq3;
1313
* CREATE TABLE test1 (i int4, t text, b bytea);
14-
* INSERT INTO test1 values (1, 'joe''s place', '\\000\\001\\002\\003\\004');
15-
* INSERT INTO test1 values (2, 'ho there', '\\004\\003\\002\\001\\000');
14+
* INSERT INTO test1 values (1, 'joe''s place', '\000\001\002\003\004');
15+
* INSERT INTO test1 values (2, 'ho there', '\004\003\002\001\000');
1616
*
1717
* The expected output is:
1818
*

src/test/examples/testlibpq3.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
CREATE SCHEMA testlibpq3;
22
SET search_path = testlibpq3;
3+
SET standard_conforming_strings = ON;
34
CREATE TABLE test1 (i int4, t text, b bytea);
4-
INSERT INTO test1 values (1, 'joe''s place', '\\000\\001\\002\\003\\004');
5-
INSERT INTO test1 values (2, 'ho there', '\\004\\003\\002\\001\\000');
5+
INSERT INTO test1 values (1, 'joe''s place', '\000\001\002\003\004');
6+
INSERT INTO test1 values (2, 'ho there', '\004\003\002\001\000');

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/9b8e99e905097e104c295bff1c47b6c0d652efdb

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy