[erlang-patches] PATCH: ODBC application discarding sqlstate in get_diagnos function

Juhani Ränkimies <>
Sun Oct 18 09:06:44 CEST 2009

On Mon, Oct 12, 2009 at 11:33 PM, Juhani Ränkimies <> wrote:
> On 10/11/09, Andrew Thompson <> wrote:
>> Ah, that does sound like a similar issue although I'm not sure my patch
>> will solve it. Does it happen consistantly or is it random? Are you
>> using parameterized queries?
> it now. I'll try to find time to reproduce it on weekend.

Yes, I'm using param_query.

I wasn't able to reproduce the problem at this time.
I couldn't use the environment where I observed the problem and the
test setup has at least these differences:
- newer version of erlang
- newer versions of sql server and drivers
- it's is not patched to support unicode strings
- my tests were light, so if it occurs rarely I might not have caught it

next week i'll drop my workaround for {error,"No SQL-driver
information available."} from couple of places and see what happens.

> Juhani

More information about the erlang-patches mailing list