Difference in SQLGetInfo between 7.4 and earlier protocol

Difference in SQLGetInfo between 7.4 and earlier protocol

am 03.06.2010 01:53:56 von Ken Sell

--_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


11pt'>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_--