Unix Technical Forum

BUG #2693: Abut SQL ASCII through JDBC

This is a discussion on BUG #2693: Abut SQL ASCII through JDBC within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 2693 Logged by: Delight Chen Email address: delight@nineder.com PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 10:18 AM
Delight Chen
 
Posts: n/a
Default BUG #2693: Abut SQL ASCII through JDBC


The following bug has been logged online:

Bug reference: 2693
Logged by: Delight Chen
Email address: delight@nineder.com
PostgreSQL version: 8.1.4
Operating system: Red Hat Enterprise Linux ES release 4 (Nahant) Kernel
2.6.9-5.ELsmp on an x86_64
Description: Abut SQL ASCII through JDBC
Details:

I tried to install postgresql 8.1.4
Initdb with SQL_ASCII is work.
Create table is correct.
Insert Big5 text data correctly.
Try to view through /usr/local/pgsql/bin/psql and it's correct.
But when I try to query throught JDBC Driver, it always says "invalid byte
value for encoding"


And I tried another version 7.3.3 of postgresql.
Do all of thing above I metioned, and check it.
Finally I check data throught JDBC Driver, it's work correctly.


I think it's a bug for 8.1.4, so I report to you.



Here is the log of Version 8.1.4
LOG: duration: 1.700 ms statement: set datestyle to 'ISO'; select
version(), c
ase when pg_encoding_to_char(1) = 'SQL_ASCII' then 'UNKNOWN' else
getdatabaseenc
oding() end;
LOG: duration: 0.115 ms statement: set client_encoding = 'BIG5'; show
autocomm
it
ERROR: invalid byte value for encoding "SQL_ASCII": 0xa4


Here is the log of Version 7.3.3
LOG: query: set datestyle to 'ISO'; select version(), case when
pg_encoding_to_
char(1) = 'SQL_ASCII' then 'UNKNOWN' else getdatabaseencoding() end;
LOG: query: set client_encoding = 'BIG5'; show autocommit
LOG: query: select * from person_info where memo='大'

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 10:18 AM
Peter Eisentraut
 
Posts: n/a
Default Re: BUG #2693: Abut SQL ASCII through JDBC

Delight Chen wrote:
> Initdb with SQL_ASCII is work.


If you do that, most of the encoding stuff won't work correctly. Use
some other encoding.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:37 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com