Difference in SQLGetInfo between 7.4 and earlier protocol

From: Ken Sell <ksell(at)greenplum(dot)com>
To: "pgsql-odbc(at)postgresql(dot)org" <pgsql-odbc(at)postgresql(dot)org>
Subject: Difference in SQLGetInfo between 7.4 and earlier protocol
Date: 2010-06-02 23:53:56
Message-ID: C82C3D24.2A30%ksell@greenplum.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Hi,

I've noticed a difference when calling SQLGetInfo with SQL_DBMS_VER. If the protocol attribute is set to 7.3, I get

SQL_DBMS_VER = PostgreSQL 8.2.13 on i386-apple-darwin9.8.0, compiled by GCC i686-apple-darwin9-gcc-4.0.1

If the protocol attribute is set to 7.4 (or 7.4-1) I get,

SQL_DBMS_VER = 8.2.13

This kind of looks like libpq is being used in the the first case to get the version, and the socket library is being used in the second case.
Or perhaps the protocol is not recognized in the second case and it defaults to the socket library?

Is this correct behavior?

Thanks,

....Ken

Browse pgsql-odbc by date

  From Date Subject
Next Message noreply 2010-06-03 03:40:43 [ psqlodbc-Bugs-1010833 ] '--without-iodbc' enables iodbc support
Previous Message Björn Häuser 2010-06-01 14:10:22 VBA, ADO, selecting from a view -> ctid not found