odbc unicode strings and datetime
Juhani Ränkimies
juhani@REDACTED
Mon Jul 6 13:15:09 CEST 2009
Hi,
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
{{Year,Month,Day},{Hour,Minute,Second}}.
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.
Regards,
Juhani Ränkimies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20090706/57946291/attachment.htm>
More information about the erlang-patches
mailing list