Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9b8e99e

Browse filesBrowse 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
Copy full SHA for 9b8e99e

File tree

Expand file treeCollapse file tree

2 files changed

+5
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-4
lines changed

‎src/test/examples/testlibpq3.c

Copy file name to clipboardExpand all lines: src/test/examples/testlibpq3.c
+2-2Lines 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

Copy file name to clipboard
+3-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.