« Return to Thread: odbc unicode strings and datetime

odbc unicode strings and datetime

by Juhani Ränkimies-2 :: Rate this Message:

Reply to Author | View in Thread

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



________________________________________________________________
erlang-patches mailing list. See http://www.erlang.org/faq.html
erlang-patches (at) erlang.org

 « Return to Thread: odbc unicode strings and datetime