Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit9b8e99e

Browse files
committed
Fix testlibpq3
The sample output assumes non-standard-conforming interpretation ofbackslashes 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 botherbackpatching this fix.
1 parent32200c1 commit9b8e99e

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
CREATESCHEMAtestlibpq3;
22
SET search_path= testlibpq3;
3+
SET standard_conforming_strings=ON;
34
CREATETABLEtest1 (i int4, ttext, bbytea);
4-
INSERT INTO test1values (1,'joe''s place','\\000\\001\\002\\003\\004');
5-
INSERT INTO test1values (2,'ho there','\\004\\003\\002\\001\\000');
5+
INSERT INTO test1values (1,'joe''s place','\000\001\002\003\004');
6+
INSERT INTO test1values (2,'ho there','\004\003\002\001\000');

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp