Subject Re: [Firebird-Java] CHAR and VARCHAR
Author Leos Urban
>>Ok. But then there is incompatibility with Interclient based
applications...

>I don't know what your application does, but there is a difference between
CHAR(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.gz
in 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