Skip to content

Commit 5809a64

Browse files
committed
Set client encoding explicitly in plpython_unicode test
This will (hopefully) eliminate the need for the plpython_unicode_0.out expected file.
1 parent 4b6106c commit 5809a64

File tree

5 files changed

+5
-52
lines changed

5 files changed

+5
-52
lines changed

src/pl/plpython/expected/README

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ Guide to alternative expected files:
22

33
plpython_error_0.out Python 2.4 and older
44

5-
plpython_unicode.out server encoding != SQL_ASCII and client encoding == UTF8; else ...
6-
plpython_unicode_0.out server encoding != SQL_ASCII and client encoding != UTF8; else ...
5+
plpython_unicode.out server encoding != SQL_ASCII
76
plpython_unicode_3.out server encoding == SQL_ASCII
87

98
plpython_subtransaction_0.out Python 2.4 and older (without with statement)

src/pl/plpython/expected/plpython_unicode.out

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
--
22
-- Unicode handling
33
--
4+
SET client_encoding TO UTF8;
45
CREATE TABLE unicode_test (
56
testvalue text NOT NULL
67
);

src/pl/plpython/expected/plpython_unicode_0.out

Lines changed: 0 additions & 50 deletions
This file was deleted.

src/pl/plpython/expected/plpython_unicode_3.out

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
--
22
-- Unicode handling
33
--
4+
SET client_encoding TO UTF8;
45
CREATE TABLE unicode_test (
56
testvalue text NOT NULL
67
);

src/pl/plpython/sql/plpython_unicode.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
-- Unicode handling
33
--
44

5+
SET client_encoding TO UTF8;
6+
57
CREATE TABLE unicode_test (
68
testvalue text NOT NULL
79
);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy