[erlang-bugs] Connection via ODBC

Ingela Anderton Andin <>
Fri Aug 1 09:14:28 CEST 2008


camui wrote:
> Hi,
>
> I have posted about this problem in erlang-questions mailing lists.
> http://erlang.org/pipermail/erlang-questions/2008-July/036656.html
>

Well yes, and I posted an answer to this  question
http://erlang.org/pipermail/erlang-questions/2008-July/036994.html

Even though the archive seems to have lost the thread information somehow...

Sockets are used internally to communicate between erlang and c as
some odbc-drivers mess with standard fildescriptors rendering the
normal "erlang-port-program-communication" to malfunction. 
And this code is general to work with both ipv4 and ipv6 hence my
guess at what might be the problem.

Regards  Ingela Erlang/OTP, Ericsson
> ----------------
> "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."
> ----------------
>
> I am not sure it is a bug, but I have trouble with connection only in 
> erlang.
>
> PS: Sorry for my english
>
> Andrey.
> ------------------------------------------------------------------------
>
> _______________________________________________
> erlang-bugs mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-bugs




More information about the erlang-bugs mailing list