pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
To: Mateusz Loskot <mateusz@loskot.net>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Case-sensitivity of connection string parameters
Date: Tue, 10 May 2016 22:26:02 +0900
Message-ID: <5731E16A.8020400@dream.email.ne.jp> (raw)
In-Reply-To: <CABUeae-LLQXiR2dwir+qYPn-SDHM+h4h7DT8HVzrBpe+nJzyug@mail.gmail.com>
References: <CABUeae-LLQXiR2dwir+qYPn-SDHM+h4h7DT8HVzrBpe+nJzyug@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>



On 2016/05/10 16:56, Mateusz Loskot wrote:
> Hi,
>
> I use the psqlODBC 9.2.1 with unixODBC 2.2.14 on Ubuntu 14.04.
> Should I expect names of connection string parameters to be case-sensitive?
>
> For instance, if I try DSN-less connection with the following connection
> string passed to the ODBC API call SQLDriverConnect:
>
> "Driver={PostgreSQL ANSI};Server=127.0.0.1;Database=test;UID=test;PWD=test;"
>
> I get this error:
>
> [unixODBC][Driver Manager]Data source name not found, and no default
> driver specified

What rejects the connection is unixODBC driver manager not psqlodbc driver.
Newer version of unixODBC may allow "Driver=....".

>
> whereas if I try this one, with the upper-case DRIVER:
>
> "DRIVER={PostgreSQL ANSI};Server=127.0.0.1;Database=test;UID=test;PWD=test;"
>
> I get successfully connected.
>
> I've couldn't find any details on the case sensitivity in the FAQ,
> release notes or https://odbc.postgresql.org/docs/config-opt.html
>
> The only cue might be the connection string in the VB example
> at the bottom of this page, where DRIVER is specified in upper-case:
> https://odbc.postgresql.org/docs/config.html
>
> Another cue that suggests case-sensitivity might be important is from
> the connection strings database:
> https://www.connectionstrings.com/postgresql-odbc-driver-psqlodbc/
> and it says:
> "Please note that sslmode=require is case sensitive, it should be
> written in lower case letters."
>
> But, it is confusing since the https://odbc.postgresql.org/docs/config-opt.html
> lists this parameter as "SSLmode", but not asd "sslmode".
>
> Finally, I have tried psqlODBC 9.3.4 on Windows and there parameters work
> regardless of their case.

The keywords of connection string are case-insensitive but the values 
might be case-sensitive.

regards,
Hiroshi Inoue


-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



view thread (6+ messages)  latest in thread

Message-ID: <5731E16A.8020400@dream.email.ne.jp>
Permalink:  ../5731E16A.8020400@dream.email.ne.jp/
Also on:    postgresql.org/message-id/5731E16A.8020400@dream.email.ne.jp

 · 

reply

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: h-inoue@dream.email.ne.jp, mateusz@loskot.net
  Subject: Re: Case-sensitivity of connection string parameters
  In-Reply-To: <5731E16A.8020400@dream.email.ne.jp>
  References: <CABUeae-LLQXiR2dwir+qYPn-SDHM+h4h7DT8HVzrBpe+nJzyug@mail.gmail.com> <5731E16A.8020400@dream.email.ne.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