odbc unicode strings and datetime

Juhani Ränkimies <>
Mon Jul 6 13:15:09 CEST 2009


Attached are two patches to odbc module.

The first one adds support for unicode text (nvarchar) fields.

The second changes the handling of datetime fields so that it's possible
to pass datetime data to  odbc:param_query as
It also returns datetime fields from the database as tuples instead of
strings which makes it backwards incompatible.

Datetime patch should be applied on top of nvarchar patch.
odbctest.erl contains an example of usage.

I've tested with WinXP/MSSQL2008 and Win2003/MSSQL2008
Any comments are appreciated.

The patches are made with git diff, hopefully the format is ok.

Juhani Ränkimies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20090706/57946291/attachment.html>

More information about the erlang-patches mailing list