Re: SQLGetInfo Bug

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: SQLGetInfo Bug
Дата
Msg-id 19980.1041518158@sss.pgh.pa.us
обсуждение исходный текст
Ответ на SQLGetInfo Bug  ("Dave Page" <dpage@vale-housing.co.uk>)
Список pgsql-odbc
"Dave Page" <dpage@vale-housing.co.uk> writes:
> snprintf(tmp, sizeof(tmp) - 1, "%s %s", POSTGRESDRIVERVERSION, conn->pg_version);

> but somewhere along the way garbage is getting appended back on the string returned:

> [328][SQLGetInfo][328]PGAPI_GetInfo: entering...fInfoType=18
> [328]PGAPI_GetInfo: p='07.02.0005 PostgreSQL 7.3 on i386-redhat-linux-gnu, compiled by GCC i386-redhat-linux-gcc
(GCC)3.2.1 20021207 (Red Hat Linux 8w�F�8�', len=0, value=0, cbMax=0 

> I can't see what the heck I've done wrong here. Any ideas?

I think the error is elsewhere, and that the garbage is already present
in conn->pg_version.

            regards, tom lane

В списке pgsql-odbc по дате отправления:

Предыдущее
От: "Dave Page"
Дата:
Сообщение: SQLGetInfo Bug
Следующее
От: "Dave Page"
Дата:
Сообщение: Re: SQLGetInfo Bug