pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dario V. Fassi <software@sistemat.com.ar>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: Very strange Error in Updates
Date: Thu, 15 Jul 2004 03:02:21 -0300
Message-ID: <40F61DED.9090609@sistemat.com.ar> (raw)
In-Reply-To: <Pine.BSO.4.56.0407150039290.12845@leary.csoft.net>
References: <40F6172D.10301@sistemat.com.ar>
	<Pine.BSO.4.56.0407150039290.12845@leary.csoft.net>

Kris Jurka wrote:

>On Thu, 15 Jul 2004, Dario V. Fassi wrote:
>  
>
>>When the parameter fill the full-length of  receiving field and has any 
>>non common character, the update throw a exception like:
>>
>>java.sql.SQLException: ERROR:  value too long for type character varying(30)
>>    
>>
>
>This is likely an encoding problem.  What is the encoding of the database?  
>I'm guessing it's SQL_ASCII and you when entering data from java which is 
>in unicode it takes more than one byte of storage which is represented as 
>more than one character in an ascii database so it goes over the limit.
>
>Kris Jurka
>  
>
Kris, the value of field is originate from a DB2 v6.1 with encoding 
IBM-850 (Ascii PC), I don't believe that the value are unicode.

But if it's unicode , how can I get sure of that, and What can be done 
to workaround that problem ?

Dario.

view thread (24+ messages)  latest in thread

Message-ID: <40F61DED.9090609@sistemat.com.ar>
Permalink:  ../40F61DED.9090609@sistemat.com.ar/
Also on:    postgresql.org/message-id/40F61DED.9090609@sistemat.com.ar

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: software@sistemat.com.ar, books@ejurka.com
  Subject: Re: Very strange Error in Updates
  In-Reply-To: <40F61DED.9090609@sistemat.com.ar>
  References: <40F6172D.10301@sistemat.com.ar> <Pine.BSO.4.56.0407150039290.12845@leary.csoft.net> <40F61DED.9090609@sistemat.com.ar>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox