pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Page <dpage@vale-housing.co.uk>
To: Mark Morgan Lloyd <markMLl.pgsql-odbc@telemetry.co.uk>
To: pgsql-odbc@postgresql.org
Subject: Re: Latest ODBC driver?
Date: Wed, 30 Aug 2006 19:35:24 +0100
Message-ID: <C11B98FC.12C3D%dpage@vale-housing.co.uk> (raw)
In-Reply-To: <44F5BD96.1199F67@telemetry.co.uk>




On 30/8/06 17:32, "Mark Morgan Lloyd" <markMLl.pgsql-odbc@telemetry.co.uk>
wrote:

> I suspect that both driver series- i.e. "official" ODBC and ODBCng- are up
> against problems with the version of the ODBC DLLs they are expecting.

If that's the case, then it's the first time I recall it ever happening in 8
years or more on this list :-)

So, anyway, as one of many people who've most releases of the driver in
production for many years I'm keen to see this resolved, so let's try some
slightly more focused testing.

The latest driver code from Inoue-san is almost certainly the best bet of
all - it is based on the 07 series which you have working, and for the most
part only adds new functionality over that series. It's also the only branch
anyone will fix bugs in. As you mention you are running a BDE based app you
absolutely need to run an ANSI build of the driver, so...

1) On a test system, uninstall any PostgreSQL drivers to be safe.

2) Download the ANSI driver from
http://www.geocities.jp/inocchichichi/psqlodbc/index.html. Unpack into your
system32 directory.

3) Register the driver by copying and pasting the following into
psqlodbc.reg (not including the ==== marks), then importing it into the
registry using regedit:

============================================================
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI]

[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\ODBC Drivers]
"PostgreSQL ANSI"="Installed"

[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\PostgreSQL]
"APILevel"="1"
"ConnectFunctions"="YYN"
"Driver"="PSQLODBCA.DLL"
"DriverODBCVer"="03.00"
"FileUsage"="0"
"Setup"="PSQLODBCA.DLL"
"SQLLevel"="1"
"UsageCount"=dword:00000001
============================================================

I don't recall if NT4 has Regedit - if not, you may have to manually add the
values using regedt32.exe.

4) Check the driver appears in the driver manager and that the version shown
matches the DLLs.

5) Setup a DSN pointing to your 7.x server.

6) Start your app, and check it works. If you find a failure, close the app,
enable MyLog in the DSN, then restart the app and reproduce the failure in
the most minimal way you can (to keep the log small). Post the log for
review.

7) If that works, try the 8.1 server. Do the previous log dance if you find
a failure.

Once we have a log of the actual failure, we should be able to see what is
going wrong.

The installation pain above is only temporary btw. When we release, the
installer will include both driver builds.

Regards, Dave.




view thread (36+ messages)  latest in thread

Message-ID: <C11B98FC.12C3D%dpage@vale-housing.co.uk>
Permalink:  ../C11B98FC.12C3D%25dpage@vale-housing.co.uk/
Also on:    postgresql.org/message-id/C11B98FC.12C3D%dpage@vale-housing.co.uk

 · 

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: dpage@vale-housing.co.uk, markMLl.pgsql-odbc@telemetry.co.uk
  Subject: Re: Latest ODBC driver?
  In-Reply-To: <C11B98FC.12C3D%dpage@vale-housing.co.uk>
  References: <44F5BD96.1199F67@telemetry.co.uk> <C11B98FC.12C3D%dpage@vale-housing.co.uk>

* 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