X-Original-To: pgsql-odbc@postgresql.org Received: from mx1.informatik.uni-tuebingen.de (mx1.Informatik.Uni-Tuebingen.De [134.2.12.5]) by postgresql.org (Postfix) with ESMTP id C2F3E476342 for ; Wed, 19 Mar 2003 16:03:48 -0500 (EST) Received: from sams.informatik.uni-tuebingen.de (sams [134.2.12.50]) by mx1.informatik.uni-tuebingen.de (Postfix) with ESMTP id 046C1864; Wed, 19 Mar 2003 22:03:45 +0100 (MET) Received: from sams.informatik.uni-tuebingen.de (localhost [127.0.0.1]) by sams.informatik.uni-tuebingen.de (8.12.3/8.12.3) with ESMTP id h2JL3jFo028555; Wed, 19 Mar 2003 22:03:45 +0100 (CET) (envelope-from sperber@sams.informatik.uni-tuebingen.de) Received: (from sperber@localhost) by sams.informatik.uni-tuebingen.de (8.12.3/8.12.3/Submit) id h2JL3iTI028554; Wed, 19 Mar 2003 22:03:44 +0100 (CET) To: Giuliano Gavazzi Cc: pgsql-odbc@postgresql.org Subject: Re: .ini parsing From: sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor]) Date: Wed, 19 Mar 2003 22:03:44 +0100 In-Reply-To: (Giuliano Gavazzi's message of "Wed, 19 Mar 2003 18:52:35 +0000") Message-ID: User-Agent: Gnus/5.090015 (Oort Gnus v0.15) XEmacs/21.5 (cabbage) References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Archive-Number: 200303/52 X-Sequence-Number: 2771 >>>>> "Giuliano" == Giuliano Gavazzi 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