Subject | Re: [Firebird-Java] CHAR and VARCHAR |
---|---|
Author | Leos Urban |
Post date | 2002-07-30T18:13:39Z |
>>Ok. But then there is incompatibility with Interclient basedapplications...
>I don't know what your application does, but there is a difference betweenCHAR(n) and VARCHAR(n) and the Type 4 driver returns the right string.
The problem is not in returning full string (with spaces) but in wrong
length of string (if charset is UNICODE).
For example: I have in DB preferred language ("EN" for English, "DE" for
Germany etc.) When I want to access ResourceBundle, I need "EN" but receive
"EN " and ResourceBundle is not found. In DB is language declared as
CHAR(2) but driver returns more characters.
>I installed FirebirdCS-1.0.0.796-0 and Interclient_201_linux-xinetd.tar.gzin Red Hat 7.3 without recompiling anything.
>Everything works as expected. Check your configuration again.Difference is only one - I use "Firebird-1.0.1.821-0-SS.i386.rpm".
Thanks
Leos