From: sperber@informatik.uni-tuebingen.de
To: Giuliano Gavazzi <dev@humph.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: .ini parsing
Date: Wed, 19 Mar 2003 22:03:44 +0100
Message-ID: <y9l7kavyspb.fsf@informatik.uni-tuebingen.de> (raw)
In-Reply-To: <a05210500ba9e6be29ae0@[10.0.1.18]>
References: <y9lel53z7wb.fsf@informatik.uni-tuebingen.de>
<a05210500ba9e6be29ae0@[10.0.1.18]>
>>>>> "Giuliano" == Giuliano Gavazzi <dev@humph.com> writes:
Giuliano> At 16:35 +0100 2003/03/19, sperber@informatik.uni-tuebingen.de
Giuliano> (Michael Sperber [Mr.
Giuliano> Pre wrote:
Giuliano> >Psqlodbc 7.2.5 isn't able to parse the .ini files produced by common
Giuliano> >.ini files creation programs, such as that shipped with iODBC. The
Giuliano> >reason is that it cannot deal with spaces before the "=" signs. So,
Giuliano> >
Giuliano> >Port= 5432
Giuliano> >
Giuliano> >is OK, but
Giuliano> >
Giuliano> >Port = 5432
Giuliano> >
Giuliano> >is not. I think it would save a lot of confusion if this were fixed
Giuliano> >or at least a FAQ would talk about it.
Giuliano> strange. I use iODBC and it is fine with the spaces. Besides, are you
Giuliano> sure the odbc.ini is read by the driver and not by the iodbc driver
Giuliano> manager? You see, with the old version of iODBC on MacOSX the .ini
Giuliano> files were actually named differently and had a different location,
Giuliano> either the driver manager was passing the file location to the driver,
Giuliano> or, as I said above, the files were read by the iODBC driver manager
Giuliano> indeed.
Giuliano> Maybe this is a bug with the version of iODBC you are using.
No; iODBC parses the .ini file just fine, with spaces. It's the
psqlodbc driver that doesn't. (I'll be glad to provide details, but
I've actually debugged and read the code in question to figure this
out. It's pretty obvious from looking at the code.)
--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: sperber@informatik.uni-tuebingen.de, dev@humph.com
Subject: Re: .ini parsing
In-Reply-To: <y9l7kavyspb.fsf@informatik.uni-tuebingen.de>
References: <y9lel53z7wb.fsf@informatik.uni-tuebingen.de> <a05210500ba9e6be29ae0@[10.0.1.18]> <y9l7kavyspb.fsf@informatik.uni-tuebingen.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox