Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b07gO-0000n7-75 for pgsql-odbc@arkaria.postgresql.org; Tue, 10 May 2016 13:26:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b07gN-00053K-Q3 for pgsql-odbc@arkaria.postgresql.org; Tue, 10 May 2016 13:26:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b07g1-0004eF-5p for pgsql-odbc@postgresql.org; Tue, 10 May 2016 13:26:17 +0000 Received: from mail2.asahi-net.or.jp ([202.224.39.198]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b07fv-0001Ul-N3 for pgsql-odbc@postgresql.org; Tue, 10 May 2016 13:26:15 +0000 Received: from [192.168.1.3] (h216161.dynamic.ppp.asahi-net.or.jp [61.114.216.161]) by mail2.asahi-net.or.jp (Postfix) with ESMTP id 30AD514C79; Tue, 10 May 2016 22:26:03 +0900 (JST) Subject: Re: Case-sensitivity of connection string parameters To: Mateusz Loskot References: Cc: pgsql-odbc@postgresql.org From: "Inoue, Hiroshi" Message-ID: <5731E16A.8020400@dream.email.ne.jp> Date: Tue, 10 May 2016 22:26:02 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 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