Difference in SQLGetInfo between 7.4 and earlier protocol

Поиск
Список
Период
Сортировка
Искать

Difference in SQLGetInfo between 7.4 and earlier protocol

От:
Ken Sell <ksell@greenplum.com>
Дата:
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

  
FAQ