Re: DIAG [HY000] server closed the connection unexpectedly - Mailing list pgsql-odbc

From Tsunakawa, Takayuki
Subject Re: DIAG [HY000] server closed the connection unexpectedly
Date
Msg-id 0A3221C70F24FB45833433255569204D1F635668@G01JPEXMBYT05
Whole thread Raw
In response to Re: DIAG [HY000] server closed the connection unexpectedly  ("Jon Raiford" <Raiford@labware.com>)
List 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


Attachment

pgsql-odbc by date:

Previous
From: "Jon Raiford"
Date:
Subject: Re: DIAG [HY000] server closed the connection unexpectedly
Next
From: "Fred Parkinson"
Date:
Subject: Re: xmin when linked tables are updated?