summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Davis2025-06-10 18:23:05 +0000
committerJeff Davis2025-06-10 18:23:05 +0000
commit78bd364ee39ca70a8f9cb8719282389866a08e14 (patch)
treeb1fc15934cddae75cc989cc8059946620768c780
parent4c787a24e7e220a60022e47c1776f22f72902899 (diff)
contrib/spi/refint.c: use pg_ascii_tolower() instead.
Avoid dependence on setlocale(). No behavior change. Discussion: https://postgr.es/m/[email protected] Reviewed-by: Peter Eisentraut <[email protected]>
-rw-r--r--contrib/spi/refint.c2
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]);