diff options
author | Jeff Davis | 2025-07-01 14:24:23 +0000 |
---|---|---|
committer | Jeff Davis | 2025-07-01 14:24:23 +0000 |
commit | d81dcc8d6243054e3bde40c6fb2b2a0be4b19da6 (patch) | |
tree | fbc783e31b35a88ee55c17c64b378a6ef3efb040 /contrib/spi/refint.c | |
parent | 9e345415bcd3c4358350b89edfd710469b8bfaf9 (diff) |
Use pg_ascii_tolower()/pg_ascii_toupper() where appropriate.
Avoids unnecessary dependence on setlocale(). No behavior change.
This commit reverts e1458f2f1b, which reverted some changes
unintentionally committed before the branch for 19.
Reviewed-by: Peter Eisentraut <[email protected]>
Discussion: https://postgr.es/m/[email protected]
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'contrib/spi/refint.c')
-rw-r--r-- | contrib/spi/refint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/spi/refint.c b/contrib/spi/refint.c index d5e25e07ae9..89898cad7b0 100644 --- a/contrib/spi/refint.c +++ b/contrib/spi/refint.c @@ -321,7 +321,7 @@ check_foreign_key(PG_FUNCTION_ARGS) if (nrefs < 1) /* internal error */ elog(ERROR, "check_foreign_key: %d (< 1) number of references specified", nrefs); - action = tolower((unsigned char) *(args[1])); + action = pg_ascii_tolower((unsigned char) *(args[1])); if (action != 'r' && action != 'c' && action != 's') /* internal error */ elog(ERROR, "check_foreign_key: invalid action %s", args[1]); |