[erlang-questions] ODBC Crashing
Brady McCary
brady.mccary@REDACTED
Sat May 15 03:51:52 CEST 2010
Henning,
Unfortunately they are not open. However, if you (or another) will
link me to general instructions on how to debug erlang port processes
I will be glad to find the issue myself in off-time and post the patch
to this list.
Brady
On Fri, May 14, 2010 at 7:02 PM, Henning Diedrich <hd2010@REDACTED> wrote:
> Brady, could you give me a tip on where to find the sources you are talking
> about, if they are open?
>
> I'd like to take a look how they handle decimals.
>
> Thanks,
> Henning
>
> Brady McCary wrote:
>>
>> erlang-questions,
>>
>> The odbc port process is crashing. The system is erlang R13B04 on
>> windows. Database is MSSQL. I am almost certain that the crash has to
>> do with parsing/marshaling of decimal types, e.g.,
>>
>> Sql = "exec dbo.foo bar = ?",
>> Bar = {{sql_decimal, 19, 6}, "123.456"},
>> odbc:param_query(Ref, Sql, [Bar])
>>
>> Note that precision is greater or equal to 16 so that the odbc port
>> driver will probably be handling them as strings (according to the
>> documentation). The crash is intermittent, i.e., if Bar is fixed, then
>> the call will succeed more often than not. The need is not pressing
>> b/c we have switched from using {sql_decimal, P, S} to {sql_varchar,
>> N} b/c MSSQL parses the decimal out of the varchar fine for our
>> purposes.
>>
>> Brady
>>
>> ________________________________________________________________
>> erlang-questions (at) erlang.org mailing list.
>> See http://www.erlang.org/faq.html
>> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>>
>>
>>
>
More information about the erlang-questions
mailing list