diff options
author | Michael Paquier <michael@paquier.xyz> | 2021-09-01 11:48:08 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2021-09-01 11:48:08 +0900 |
commit | c4f7a6b87ff350200f4b3afb9fe05e2899161070 (patch) | |
tree | d53037fa88469396f242ad4f026e63725816ddb9 /contrib/postgres_fdw/postgres_fdw.c | |
parent | de1d4fef71cb00370aa5f794fe05355c1d063aea (diff) | |
download | postgresql-c4f7a6b87ff350200f4b3afb9fe05e2899161070.tar.gz postgresql-c4f7a6b87ff350200f4b3afb9fe05e2899161070.zip |
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
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions