Refactor one conversion of SQLSTATE to string in elog.c
Michael Paquier <michael@paquier.xyz>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/error/elog.c | modified | +1 −12 |
Discussion
- unpack_sql_state not called? 5 messages · 2021-08-30 → 2021-09-01