Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XmIwE-0008Mp-Rh for pgsql-odbc@arkaria.postgresql.org; Thu, 06 Nov 2014 09:01:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XmIwE-0005Cx-CD for pgsql-odbc@arkaria.postgresql.org; Thu, 06 Nov 2014 09:01:06 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XmIwD-0005Cr-Qn for pgsql-odbc@postgresql.org; Thu, 06 Nov 2014 09:01:05 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by makus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XmIw8-0006By-1l for pgsql-odbc@postgresql.org; Thu, 06 Nov 2014 09:01:04 +0000 Received: (qmail 26420 invoked by uid 502); 6 Nov 2014 09:00:56 -0000 Received: from unknown (HELO ?127.0.0.1?) (100.126.1.62) by sd2.tpf-fw-c.co.jp with SMTP; 6 Nov 2014 09:00:56 -0000 Message-ID: <545B38C6.5000702@tpf.co.jp> Date: Thu, 06 Nov 2014 18:00:54 +0900 From: "Inoue, Hiroshi" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: malcolm.macleod@tshwanedje.com CC: "pgsql-odbc@postgresql.org" Subject: Re: Does psqlODBC actually work on osx? References: <1415116470.3086.9.camel@watchmen.homenetwork> <5458F843.9010009@aklaver.com> <1415118182.3086.11.camel@watchmen.homenetwork> <54599684.4060809@tpf.co.jp> <1415168015.4399.1.camel@watchmen.homenetwork> <1415170475.4399.7.camel@watchmen.homenetwork> In-Reply-To: <1415170475.4399.7.camel@watchmen.homenetwork> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org (2014/11/05 15:54), Malcolm MacLeod wrote: > I've tracked this down to the getDSNInfo function inside dlg_specific.c > It checks only INI_SERVER and not SPEC_SERVER - while other parts of the > code check both, this leads to inconsistent behaviour. It's never inconsistent. The driver allows short form keywords ABBR_XXXX of keywords INI_XXXX in connection strings but doesn't allow them in DSN entries. The short form keywords are for applications which can handle only short connection strings. SPEC_SERVER is a short form of INI_SERVER. regards, Hiroshi Inoue > If I use e.g. iodbctestw > "DSN=test;UID=postgres;PWD=postgres13;SERVERNAME=10.0.0.3" it bypasses > the ini reading and works as expected. > I attempted a quick patch to make getDSNInfo check both and after doing > that it works as expected, personally I think this should be fixed to > check for both. > > Thanks for all the help. > - Malcolm MacLeo -- I am using the free version of SPAMfighter. SPAMfighter has removed 12891 of my spam emails to date. Get the free SPAMfighter here: http://www.spamfighter.com/len Do you have a slow PC? Try a Free scan http://www.spamfighter.com/SLOW-PCfighter?cid=sigen -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc