Skip to Content.
Sympa Menu

freetds - bug in odbc.ini handling

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Pim Zandbergen" <freetds-list AT macroscoop.nl>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: bug in odbc.ini handling
  • Date: Tue, 4 Sep 2001 15:52:33 -0400


both freetds and unixODBC try to find a DSN
in these files, in this order:
$ODBCINI
$HOME/.odbc.ini
/etc/odbc.ini

freetds will, however, expect to find the DSN
in the first file it can open. If the file exists,
but does not contain the requested DSN section, it
fails.

unixODBC behaves correctly, if it does not find a
DSN within a file, it continues to search the next
file.

This realy hurts when you have a system DSN in /etc/odbc.ini,
and no $HOME/.odbc.ini. If that is the case, unixODBC will
create an empty $HOME/.odbc.ini. freetds will then open that
file and not find the DSN in it.




Archive powered by MHonArc 2.6.24.

Top of Page