Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 33B61632A2C for ; Wed, 2 Jun 2010 20:54:08 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 99819-01 for ; Wed, 2 Jun 2010 23:53:59 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from EXHUB018-4.exch018.msoutlookonline.net (exhub018-4.exch018.msoutlookonline.net [64.78.17.19]) by mail.postgresql.org (Postfix) with ESMTP id B942C6323AE for ; Wed, 2 Jun 2010 20:54:00 -0300 (ADT) Received: from EXVMBX018-10.exch018.msoutlookonline.net ([64.78.17.51]) by EXHUB018-4.exch018.msoutlookonline.net ([64.78.17.19]) with mapi; Wed, 2 Jun 2010 16:53:58 -0700 From: Ken Sell To: "pgsql-odbc@postgresql.org" Date: Wed, 2 Jun 2010 16:53:56 -0700 Subject: Difference in SQLGetInfo between 7.4 and earlier protocol Thread-Topic: Difference in SQLGetInfo between 7.4 and earlier protocol Thread-Index: AcsCrtyrh0nP680J2Ua/rfxCdFlCEg== Message-ID: Accept-Language: en-US Content-Language: en X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_C82C3D242A30ksellgreenplumcom_" MIME-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.499 tagged_above=-10 required=5 tests=BAYES_05=-0.5, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201006/4 X-Sequence-Number: 10304 --_000_C82C3D242A30ksellgreenplumcom_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 =3D 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 =3D 8.2.13 This kind of looks like libpq is being used in the the first case to get th= e 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 default= s to the socket library? Is this correct behavior? Thanks, ....Ken --_000_C82C3D242A30ksellgreenplumcom_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Difference in SQLGetInfo between 7.4 and earlier protocol 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 =3D PostgreSQL 8.2.13 on i386-apple-darwin9.8.0, c= ompiled 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 =3D 8.2.13

This kind of looks like libpq is being used in the the first case to get th= e 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 default= s to the socket library?

Is this correct behavior?

Thanks,

....Ken

  
--_000_C82C3D242A30ksellgreenplumcom_--