Re: DIAG [HY000] server closed the connection unexpectedly

Поиск
Список
Период
Сортировка
От Tsunakawa, Takayuki
Тема Re: DIAG [HY000] server closed the connection unexpectedly
Дата
Msg-id 0A3221C70F24FB45833433255569204D1F635668@G01JPEXMBYT05
обсуждение исходный текст
Ответ на Re: DIAG [HY000] server closed the connection unexpectedly  ("Jon Raiford" <Raiford@labware.com>)
Список pgsql-odbc
Hi, Jon, Inoue-san

From: pgsql-odbc-owner@postgresql.org
> [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Jon Raiford
> Here is an excerpt from my ODBC tracing on Windows.  You can see that the
> error is being reported as 08001 instead of 08S01:
> v               a14-135c        EXIT  SQLEndTran  with return code -1
> (SQL_ERROR)
>                 SQLSMALLINT                  2 <SQL_HANDLE_DBC>
>                 SQLHANDLE           0x0026CCC8
>                 SQLSMALLINT                  0
>
>                 DIAG [08001] server closed the connection unexpectedly
>         This probably means the server terminated abnormally
>         before or while processing the request.
>  (101)

Thanks, Jon.  08001 was set when the driver failed to send the query (COMMIT in this case.)

Inoue-san, the attached is a revised patch.  I changed the error code to CONNECTION_COMMUNICATION_ERROR when
PQsendQuery()fails. 

Regards
Takayuki Tsunakawa


Вложения

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

Предыдущее
От: "Jon Raiford"
Дата:
Сообщение: Re: DIAG [HY000] server closed the connection unexpectedly
Следующее
От: "Fred Parkinson"
Дата:
Сообщение: Re: xmin when linked tables are updated?