git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: de1d4fe) | patch
Refactor one conversion of SQLSTATE to string in elog.c
Wed, 1 Sep 2021 02:48:08 +0000 (11:48 +0900)
Wed, 1 Sep 2021 02:48:08 +0000 (11:48 +0900)
commit c4f7a6b87ff350200f4b3afb9fe05e2899161070
Refactor one conversion of SQLSTATE to string in elog.c

unpack_sql_state() has been introduced in d46bc44 to refactor the
unpacking of a SQLSTATE into a string, but it forgot one code path when
sending error reports to clients that could make use of it. This
changes the code to also use unpack_sql_state() there, simplifying a bit
the code.

Author: Peter Smith
Discussion: https://postgr.es/m/CAHut+PuYituuD1-VVZUNcmCQuc3ZzZMPoO57POgm8tnXOkwJAA@mail.gmail.com
src/backend/utils/error/elog.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /