ODBC reading ini files

From: Chris Ryan <chris(at)greatbridge(dot)com>
To: "pgsql-interfaces(at)postgresql(dot)org" <pgsql-interfaces(at)postgresql(dot)org>
Subject: ODBC reading ini files
Date: 2000-08-08 19:40:09
Message-ID: 39906219.EF8002C2@greatbridge.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

I noticed while trying to figure out a problem that
GetPrivateProfileString(...) does it's string comparisons while reading
the ini file "case sensitive". This actuall turned out to be the reason
for my problem as the datasource was in the ini file as "postgresql" and
the program was telling the odbc driver to read the datasource
"POSTGRESQL" which it could not find cause it was doing the compares
case sensitive.

Is it written this way for a reason??? If not can it be changed to do a
strncmp?

Also as a note: If you are trying to get PostgreSQL + Coldfusion working
using the pgsql odbc driver make sure your datasource names are in all
uppercase in .odbc.ini as Coldfusion always passes the datasource name
in all caps.

Chris Ryan

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Ross J. Reedstrom 2000-08-08 20:06:29 Re: ODBC reading ini files
Previous Message Ross J. Reedstrom 2000-08-08 17:56:03 Re: Migration