Re: BUG #5246: Misleading/inconsistent SQLSTATE behavior

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: BUG #5246: Misleading/inconsistent SQLSTATE behavior
Дата
Msg-id 4B28F01B020000250002D62C@gw.wicourts.gov
обсуждение исходный текст
Ответ на BUG #5246: Misleading/inconsistent SQLSTATE behavior  ("Chris Travers" <chris.travers@gmail.com>)
Ответы Re: BUG #5246: Misleading/inconsistent SQLSTATE behavior  (Chris Travers <chris@metatrontech.com>)
Список pgsql-bugs
"Chris Travers" <chris.travers@gmail.com> wrote:

> I am noticing that that a failed database connection results in an
> unusable SQLSTATE in libpq, and a very different SQLSTATE than the
> backend registers.

Well, if the client fails to connect to the server, I'm not sure how
the server could communicate its SQLSTATE to the client, in order to
force them to match.

> For example, if a connection fails due to a database not found,
> ... the front-end registers 25P01.

I would have expected something in the 08 class, like maybe 08001 or
08004.

> login fails,  ... the front-end registers 25P01 again.

That definitely sounds like it should use 08001.

-Kevin

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

Предыдущее
От: Philip Graham
Дата:
Сообщение: Re: BUG #5244: Attempting to rollback to a savepoint after receiving an error with state 55000 the process hangs
Следующее
От: Chris Travers
Дата:
Сообщение: Re: BUG #5246: Misleading/inconsistent SQLSTATE behavior