From: Inoue, Hiroshi <inoue@tpf.co.jp>
To: malcolm.macleod@tshwanedje.com
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: Does psqlODBC actually work on osx?
Date: Thu, 06 Nov 2014 18:00:54 +0900
Message-ID: <545B38C6.5000702@tpf.co.jp> (raw)
In-Reply-To: <1415170475.4399.7.camel@watchmen.homenetwork>
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
(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
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: inoue@tpf.co.jp, malcolm.macleod@tshwanedje.com
Subject: Re: Does psqlODBC actually work on osx?
In-Reply-To: <545B38C6.5000702@tpf.co.jp>
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> <545B38C6.5000702@tpf.co.jp>
* 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