pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas G. Lockhart <lockhart@alumni.caltech.edu>
To: Byron Nikolaidis <byronn@insightdist.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Postgres Interfaces Mailing List <pgsql-interfaces@postgresql.org>
Subject: Re: [INTERFACES] iodbc interface on Unix
Date: Wed, 19 Aug 1998 02:25:44 +0000
Message-ID: <35DA37A8.2D0F1482@alumni.caltech.edu> (raw)
References: <35D99896.DFB21123@alumni.caltech.edu>
	<35D9D132.4DE6ACB8@insightdist.com>

> Yes, if you are using a snapshot of 6.4 then the driver won't work 
> because it is using 6.3 protocol.  And it uses PG_PROTOCOL_LATEST
> in its connect for the protocol version.  Maybe it should use 6.3.

Ah. That sounds like the problem.

> How do you set the protocol version to be 6.3?  Is it just major 
> number = 6 and minor number = 3?  Seems too simple.

It's even simpler. The protocol started at 0.0, was 1.0 for v6.3, and
will be 2.0 for v6.4. But on the surface it looks like we are OK for
now, unless Postgres doesn't really like v6.3 packets:

/opt/postgres/current/src/interfaces/odbc.new/connection.h:
  #define PG_PROTOCOL_LATEST              PG_PROTOCOL(1, 0)
/opt/postgres/current/src/interfaces/odbc.new/connection.c:
  sp.protoVersion = (ProtocolVersion) htonl(PG_PROTOCOL_LATEST);

> Also, as far as compiling goes, I understand the driver has trouble 
> compiling under Linux since the Translation DLL stuff was
> added.  Did you have to ifdef that stuff out for Non-win32?

Yeah, it didn't help :) I hope to get somewhere on this soon, and I can
send patches or full sources which include changes. No point in making
you guess on what actually worked...

So, any more ideas/suggestions on how to get this working?

                    - Tom



view thread (27+ messages)  latest in thread

Message-ID: <35DA37A8.2D0F1482@alumni.caltech.edu>
Permalink:  ../35DA37A8.2D0F1482@alumni.caltech.edu/
Also on:    postgresql.org/message-id/35DA37A8.2D0F1482@alumni.caltech.edu

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: lockhart@alumni.caltech.edu, byronn@insightdist.com, tgl@sss.pgh.pa.us
  Subject: Re: [INTERFACES] iodbc interface on Unix
  In-Reply-To: <35DA37A8.2D0F1482@alumni.caltech.edu>

* 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