Const-ify the arguments of str_tolower() and friends to suppress compile
Tom Lane <tgl@sss.pgh.pa.us>
Const-ify the arguments of str_tolower() and friends to suppress compile warnings. Clean up various unneeded cruft that was left behind after creating those routines. Introduce some convenience functions str_tolower_z etc to eliminate tedious and error-prone double arguments in formatting.c. (Currently there seems no need to export the latter, but maybe reconsider this later.)
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/formatting.c | modified | +55 −64 |
| src/backend/utils/adt/oracle_compat.c | modified | +7 −18 |
| src/include/utils/formatting.h | modified | +4 −4 |