[erlang-bugs] odbc:sql_query on 64 bit linux

Ingela Anderton Andin ingela@REDACTED
Fri May 9 10:20:40 CEST 2008


Hi Tobias!

There is no one working on this particular problem at the moment.
E.i. it is not on top of the priority list. There has however
been some improvements regarding  64-bit support.
If  those would solve your problem I do not know, but even if
they do not it would be better if you start working from the latest
version of the code. There will be a new OTP-release in the begining of 
June.
But for now I will send you the latest version of odbcserver.c and 
odbcserver.h
Good luck.

Regards Ingela, Erlang/OTP Ericsson

Tobias Kräntzer wrote:
> Hi,
>
> while developing an application with erlang that should connect to
> PostgreSQL over odbc I encountered a bug on the 64 bit Linux
> implementation.
>
> The Problem: The result from a query with odbc:sql_query/2 and
> odbc:param_query/3 are not given back on a 64 bit Linux. Using
> odbc:select_query/2 works. On 32 bit Linux, everything is ok.
>
>   
>>>> {ok, C} = odbc:connect(...).
>>>>         
> {ok,<0.39.0>}
>   
>>>> odbc:sql_query(C, "select * from test").
>>>>         
> [{selected,[],[]},{},{}]
>
> With isql or similar I get my two rows.
>
> Searching for a solution I found a post from Laura M. Castro [1]
> describing the same problem, but now answer.
>
> Is there anybody working on a solution or patch?
> If not, I will give it a try.
>
> Regards,
> Tobias Kräntzer
>
> [1] <http://forum.trapexit.org/viewtopic.php?t=14214>
>
> --
> Linux 2.6.22-14-xen #1 SMP x86_64 GNU/Linux (Debian Etch)
> Erlang (ASYNC_THREADS) (BEAM) emulator version 5.5.5
> odbc  2.0.7
> postgresql 8.2
>
>   

-------------- next part --------------
A non-text attachment was scrubbed...
Name: odbcserver.h
Type: text/x-chdr
Size: 5375 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20080509/c71275ee/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: odbcserver.c
Type: text/x-csrc
Size: 71344 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20080509/c71275ee/attachment-0001.bin>


More information about the erlang-bugs mailing list