[freetds] [PATCH] CTLib handling of NVARCHAR

Andrew Victor avictor.za at gmail.com
Mon Nov 24 09:42:15 EST 2008


hi,

It seems that the CTLib implementation handles NVARCHAR strings as VARCHAR's.
These strings get converted to the single-byte character set when sent
to the MS-SQL server, which fails if the string actually contains a
multi-byte character.

The attached patch fixes this (tested with client charset = UTF-8).


Regards,
  Andrew Victor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unicode.patch
Type: text/x-patch
Size: 2664 bytes
Desc: not available
Url : http://lists.ibiblio.org/pipermail/freetds/attachments/20081124/74106eed/attachment.bin 


More information about the FreeTDS mailing list