On 05/20/2014 04:31 PM, Michael Paquier wrote:
> Now, I am trying to figure out how to run those regressions with
> pg_regress. On Linux, we use a given combination of odbcinst.ini and
> odbc.ini with a launcher that actually sets ODBCSYSINI to set the path
> where looking for the .ini files. I have been trying several combinations
> of --launcher as well as setting up ODBCSYSINI in either the makefile or as
> an environment viriable without success, pg_regress continues to complain
> with the following error:
> ! SQLDriverConnect failed.
> ! IM002=[Microsoft][ODBC Driver Manager] Data source name not found and no
> default driver specified
> So obviously pg_regress is not able to find the initialization files
> properly...
I believe the ODBCSYSINI environment variable is specific to unixodbc,
and not obeyed by the Windows ODBC library. I don't know the preferred
way to do it on Windows would be.
- Heikki