Commit c4f7a6b
committed
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.com1 parent de1d4fe commit c4f7a6b
1 file changed
+1
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3312 | 3312 | | |
3313 | 3313 | | |
3314 | 3314 | | |
3315 | | - | |
3316 | | - | |
3317 | 3315 | | |
3318 | 3316 | | |
3319 | 3317 | | |
| |||
3324 | 3322 | | |
3325 | 3323 | | |
3326 | 3324 | | |
3327 | | - | |
3328 | | - | |
3329 | | - | |
3330 | | - | |
3331 | | - | |
3332 | | - | |
3333 | | - | |
3334 | | - | |
3335 | | - | |
3336 | 3325 | | |
3337 | | - | |
| 3326 | + | |
3338 | 3327 | | |
3339 | 3328 | | |
3340 | 3329 | | |
| |||
0 commit comments