From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: sayanoruspai@gmail.com
Subject: BUG #17981: HY000 server closed the connection unexpectedly
Date: Mon, 19 Jun 2023 11:52:16 +0000
Message-ID: <17981-984fdc9ec7e66b42@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 17981
Logged by: Sayan Oruspay
Email address: sayanoruspai@gmail.com
PostgreSQL version: 12.1
Operating system: Windows 10
Description:
I am writing an application that connects to the local database through
psqlodbc version 13.02. And when I manually stop my database service, I get
sqlstate HY000 and message 'server closed the connection unexpectedly ...'.
Should not it be something like 08S01? Also SQLGetConnectAttr(GetHandle(),
SQL_ATTR_CONNECTION_DEAD, &dead, SQL_IS_INTEGER, nullptr); does not produce
right answer and dead is returned equal to SQL_CD_FALSE.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, sayanoruspai@gmail.com
Subject: Re: BUG #17981: HY000 server closed the connection unexpectedly
In-Reply-To: <17981-984fdc9ec7e66b42@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox