[erlang-questions] Problem with connection via ODBC

camui camuig@REDACTED
Tue Jul 15 07:15:03 CEST 2008


I have some doubt in that this is bug in ODBC, because I have no trouble
with connection to the database from another applications (such as
OpenOffice). This applications also use ODBC.

2008/7/14, Gleb Peregud <gleber.p@REDACTED>:
>
> 2008/7/14 camui <camuig@REDACTED>:
>
> > Dear Erlang Team!
> >
> > I have a problem with connection to the remote database via ODBC in
> Erlang.
> >
> > 1> odbc:connect("DSN=pg", [{scrollable_cursors, off}]).
> > {error,{{badmatch,{error,eafnosupport}},
> > [{odbc,init,1},{gen_server,init_it,6},{proc_lib,init_p,5}]}}
> >
> > The database is located on another machine in the local network.
> > I have tried to connect to this database in the OpenOffice Base (using
> ODBC)
> > and there are no problems. And I had not any troubles with connection in
> > Erlang on the machine where database is located.
> >
> > May you help me, please?
> >
> > Andrey.
>
>
> Hi,
>
> Quick search about "eafnosupport" (which, as can be read from this
> error log, is the error "code") reveals:
>
> "This is an error you get when you try to connect(2) or bind(2) a
> socket to an address where that address doesn't make sense. "
>
> and
>
> "Either way the programmer screwed up."
>
> So it may be bug in ODBC or i are using it in a wrong way :)
>
>
> --
> Gleb Peregud
> http://gleber.pl/
>
> Every minute is to be grasped.
> Time waits for nobody.
> -- Inscription on a Zen Gong
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080715/c04918be/attachment.htm>


More information about the erlang-questions mailing list