[freetds] perl and utf8_2 test
James K. Lowden
jklowden at freetds.org
Mon Jan 15 10:25:31 EST 2007
ZIGLIO, Frediano, VF-IT wrote:
> utf8_2 problem is caused from a string error changed from
>
> WARNING! Some character(s) could not be converted into client's
> character set.
>
> to
>
> Buffer overflow converting characters from client into server's
> character set.
>
> well... they seem very differents but IMO previous version was the
> correct one.
This is probably an accident, resulting from my implementation of
tdserror(). I think we want TDSEICONVIU instead. Thank you for finding
it.
> I noted also that severity changed from 16 to 4 for conversions
> problems.
I took the value of EXCONVERSION from Sybase; it's used for things like
SYBECOFL ("Data conversion resulted in overflow"). When I originally
wrote the iconv code, I guess I didn't pass the right values to
tds_client_msg(). Using a severity of 16 is a habit of mine. So the
current severity of 4 is more correct IMO.
--jkl
More information about the FreeTDS
mailing list