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.<br><br><div><span class="gmail_quote">2008/7/14, Gleb Peregud <<a href="mailto:gleber.p@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gleber.p@gmail.com</a>>:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
2008/7/14 camui <<a href="mailto:camuig@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">camuig@gmail.com</a>>:<br><br>> Dear Erlang Team!<br> ><br> > I have a problem with connection to the remote database via ODBC in Erlang.<br>
><br> > 1> odbc:connect("DSN=pg", [{scrollable_cursors, off}]).<br> > {error,{{badmatch,{error,eafnosupport}},<br> > [{odbc,init,1},{gen_server,init_it,6},{proc_lib,init_p,5}]}}<br> ><br> > The database is located on another machine in the local network.<br>
> I have tried to connect to this database in the OpenOffice Base (using ODBC)<br> > and there are no problems. And I had not any troubles with connection in<br> > Erlang on the machine where database is located.<br>
><br> > May you help me, please?<br> ><br> > Andrey.<br><br><br>Hi,<br><br> Quick search about "eafnosupport" (which, as can be read from this<br> error log, is the error "code") reveals:<br>
<br> "This is an error you get when you try to connect(2) or bind(2) a<br> socket to an address where that address doesn't make sense. "<br><br> and<br><br> "Either way the programmer screwed up."<br>
<br> So it may be bug in ODBC or i are using it in a wrong way :)<br><br><br> --<br> Gleb Peregud<br><a href="http://gleber.pl/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://gleber.pl/</a><br>
<br> Every minute is to be grasped.<br> Time waits for nobody.<br> -- Inscription on a Zen Gong<br></blockquote></div><br>