[Pkg-erlang-devel] Bug#598525: erlang-odbc: odbc:connect(ConnStr, Options) fails with timeout

Sergei Golovan sgolovan at nes.ru
Tue Oct 12 08:08:23 UTC 2010


Hi Christian!

Sorry for a delay.

On Wed, Sep 29, 2010 at 9:17 PM, Christian Adams
<adams at skavaer.homelinux.org> wrote:
>
> When I try to setup an odbc-connection to a local installed postgresql(8.4) database i get the following:
>
> ---- snip ----
> Erlang R14A (erts-5.8) [source] [rq:1] [async-threads:0] [hipe] [kernel-poll:false]
>
> Eshell V5.8  (abort with ^G)
> 1> odbc:start().
> ok
> 2> odbc:connect("DSN=postgres;UID=username;PWD=passwd", [{scrolling_cursors, off}, {trace_driver, on}]).
>
> =ERROR REPORT==== 29-Sep-2010::18:54:26 ===
> ** Generic server <0.39.0> terminating

I've tried to run it (though with unixodbc 2.2.11 and postgresql 8.3
from Lenny) and it seems to work fine.

Could you try to check if unixodbc works itself (using isql for example)?

Also, try to install the erlang-base package instead of
erlang-base-hipe (it tends to be more robust).

>
> Versions of packages erlang-odbc depends on:
> ii  erlang-base-hipe           1:14.a-dfsg-2 Erlang/OTP HiPE enabled virtual ma
> ii  libc6                      2.11.2-6      Embedded GNU C Library: Shared lib
> ii  unixodbc                   2.2.14p2-1    ODBC tools libraries

-- 
Sergei Golovan





More information about the Pkg-erlang-devel mailing list