Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Bugs > BUG #4158: clie...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 3762 of 3899
Post > Topic >>

BUG #4158: client encoding is wrong in plpythonu code

by arysin@[EMAIL PROTECTED] ("Andriy Rysin") May 11, 2008 at 05:25 PM

The following bug has been logged online:

Bug reference:      4158
Logged by:          Andriy Rysin
Email address:      arysin@[EMAIL PROTECTED]
 version: 8.3.1
Operating system:   Linux (Mandriva 2008.1) x86_64
Description:        client encoding is wrong in plpythonu code
Details: 

$ more test.py
set client_encoding = 'UTF8';

CREATE OR REPLACE FUNCTION test_encoding()
RETURNS varchar AS $$
    im****t sys

    return sys.getdefaultencoding() + ', can change: ' + str( hasattr(sys,
'setdefaultencoding') )

$$ LANGUAGE plpythonu;

show client_encoding;
select test_encoding();

$ psql krym -f test.py
SET
CREATE FUNCTION
 client_encoding
-----------------
 UTF8
(1 row)

      test_encoding
--------------------------
 ascii, can change: False
(1 row)

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
 




 1 Posts in Topic:
BUG #4158: client encoding is wrong in plpythonu code
arysin@[EMAIL PROTECTED]   2008-05-11 17:25:24 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 6 17:18:22 CDT 2008.